• 请不要在回答技术问题时复制粘贴 AI 生成的内容
fasling
V2EX  ›  程序员

有插件可以让 Chrome 显示完整的 url 么, http/https 那部分?

  •  
  •   fasling · Jun 29, 2016 · 13050 views
    This topic created in 3782 days ago, the information mentioned may be changed or developed.
    30 replies  •  2020-11-23 15:14:02 +08:00
    chousb
    chousb
    Jun 29, 2016
    1
    为啥需要显示。。。
    如果是 https ,没问题就是绿的,有问题就是红的;
    如果是 http ,就是白色的。。
    xcodeghost
    xcodeghost
    Jun 29, 2016❤️3
    2
    chrome 讨厌的一个地方,就是在地址栏复制网址时。每次想复制 www.v2ex.com 这部分,它却复制 http://www.v2ex.com/ 不得不每次手动再删除 http:// 部分。
    MrZephyrus
    MrZephyrus
    Jun 29, 2016
    3
    @xcodeghost 然而 safari firefox 都这样 并不是 chrome 讨厌==
    rekulas
    rekulas
    Jun 29, 2016
    4
    之前正想做这么个插件,要不我试试?

    chrome 的这个改动简直反人类
    yexm0
    yexm0
    Jun 29, 2016 via Android
    5
    firefox 可以去 about:config 里搜索 urls 把它给改成 false 就能把 http 的隐藏给取消掉。
    xmbaozi
    xmbaozi
    Jun 29, 2016
    6
    同感!
    crystom
    crystom
    Jun 29, 2016
    8
    可以写一个 js 放到书签栏实现你的需求
    fasling
    fasling
    OP
    Jun 29, 2016
    9
    @practicer 不错!
    fasling
    fasling
    OP
    Jun 29, 2016
    10
    @rekulas 赶快来一个吧
    fasling
    fasling
    OP
    Jun 29, 2016
    11
    @crystom 然而我并不会写 js...
    bazingaterry
    bazingaterry
    Jun 29, 2016
    12
    fangxing204
    fangxing204
    Jun 29, 2016 via Android
    13
    这个可以直接设置的,你 google 或下百度
    crystom
    crystom
    Jun 29, 2016
    14
    @fasling 你要的需求是啥,复制?给个例子比如这个页面你想得到 www.v2ex.com 还是 www.v2ex.com/t/289144
    qq515391365
    qq515391365
    Jun 29, 2016
    15
    版本 50,默认设置.http 不显示,https 显示,复制时,都带有前缀..
    rekulas
    rekulas
    Jun 29, 2016
    16
    @fasling 我回去试试看
    yeyeye
    yeyeye
    Jun 29, 2016❤️1
    17
    @MrZephyrus 就是他家起的头

    @xcodeghost
    @rekulas
    @xmbaozi
    @crystom
    @bazingaterry
    刚写的 还热乎! 把这个添加到收藏夹 不要问我为什么不用 document.domain 因为它可以被覆盖

    javascript:prompt("该网址域名为",location.href.split("/")[2])

    随手赠送一个以前写的 http 切换到 https 再点又切换到 http
    javascript:ttt1=location.href;ttt2="http://";ttt3="https://";if (ttt1.indexOf(ttt2)==0) {location.href=ttt1.replace(ttt2,ttt3)} else if (ttt1.indexOf(ttt3)==0) {location.href=ttt1.replace(ttt3,ttt2)}
    rekulas
    rekulas
    Jun 29, 2016
    18
    @fasling
    @yeyeye
    似乎也只能这样 api 没找到相关接口 NPAPI 也许可行不过太麻烦了
    不过还是应该保留 http/https 自由选择复制
    paomian
    paomian
    Jun 29, 2016
    19
    复制粘贴就会有 http 的头了
    0x000000
    0x000000
    Jun 29, 2016
    20
    @xcodeghost 你打个空格再复制啊
    fasling
    fasling
    OP
    Jun 30, 2016
    21
    @crystom 有时候要域名,有时候全部都要
    Olive
    Olive
    Jun 30, 2016
    22
    https 是显示的 = = 同一楼
    bestie
    bestie
    Jun 30, 2016
    23
    HTTPS 默认显示, HTTP 默认是一个圈感叹号,复制都会带协议头,不显示的也只有 HTTP 吧,不知道楼主的需求是什么
    fasling
    fasling
    OP
    Jul 3, 2016 via Android
    24
    @bestie 有时候复制带协议的地址,有时候复制不带的地址
    C02TobNClov1Dz56
    C02TobNClov1Dz56
    Jun 24, 2018
    25
    chrome dev 69.0.3464.0,现在双击地址栏可以看到完整 URL 了。
    daringwalker
    daringwalker
    Sep 7, 2018❤️1
    26
    chrome 69.0.3497.81
    在 chrome://flags/ 下
    禁用 Omnibox UI Hide Steady-State URL Scheme and Trivial Subdomains
    重启 chrome 就显示完整 URL 了
    ptbird
    ptbird
    Sep 16, 2019
    27
    666
    stone2020
    stone2020
    Jun 24, 2020
    28
    @daringwalker 这个早就不行了,新版这个开关都去掉了,刚浏览了谷歌的一个论坛,外国人一阵吐槽,尤其是程序员,程序员需要看到完整的。另外上面说到的拷贝带有 http 的问题,可以间接这么解决,双击地址栏后就可以显示完整的网址,选择自己需要拷贝的部分
    stone2020
    stone2020
    Jun 24, 2020
    29
    哈哈,各位,我找到最新版的谷歌浏览器( 83.0.4103.116 (正式版本) ( 64 位))显示完整 http(s)://www. 的方法了。访问:chrome://flags/,搜索 context-menu-show-full-urls,改成 enabled,重启浏览器,然后关键的一步,是右键点击地址栏,选择 "总是显示完整网址" 勾上,无需重启浏览器立即生效
    N1ckl32
    N1ckl32
    Nov 23, 2020
    30
    谷歌浏览器版本 87 [版本 87.0.4280.67] ,可以直接右键点击地址栏,选择 "总是显示完整网址" 勾上,无需重启浏览器
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1668 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 73ms · UTC 05:11 · PVG 13:11 · LAX 21:11 · JFK 00:11
    ♥ Do have faith in what you're doing.