首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

超方便!现在你分享网址时,Chrome会帮你自动精简杂乱网址链接

当你浏览互联网时,你经常会遇到跟踪或推荐垃圾链接的网址。在分享网址链接时,你可能不希望链接包含所有无意义的字符,谷歌的Chrome最近开始考虑到这一需求。从v64版本开始,Chrome浏览器会去掉网址链接里不必要的字符串。

当你在Chrome中使用“共享”菜单(而不是Chrome自定义标签)时,Chrome会自动进行网址精简。您可以将网址复制到剪贴板或直接分享到其他应用程序——无需设置。如果你点开网址栏并手动选择网址文本,则仍然可以获取包含所有字符的完整网址。您可以使用此Amazon网址自行测试:https://www.amazon.com/Huawei-Unlocked-Processor-Camera-Resistant/dp/B078T3D547/ref=sr_1_1?tag=androidpolice-20&s=wireless&ie=UTF8&qid=1519061847&sr=1-1&keywords=mate+10+pro

我们怀疑这个功能与谷歌早些时候开始支持的“ 规范页面 ”网址有关,https://support.google.com/webmasters/answer/139066?hl=en。我们在AMP页面中看到了类似的功能,因此共享内容将共享一个可用的链接。尽管如此,一般的网址精简似乎有点细微的区别。在Chrome v63或更低版本中无法使用该功能,但其在v64中可用。目前v64版本的Chrome是稳定版,其在12月至1月的时间段内还属于测试版和开发版。

当你想手动复制网址以避免此功能时,可能会出现一些状况。谷歌Chrome浏览器的网址精简功能甚至会移除将网页加载到特定位置的定位标记,例如,此销售综述(https://www.androidpolice.com/2018/02/19/app-sales-feb-19-2018/#Free)的“免费”部分。在Chrome v64或更高版本中分享它,Chrome只是加载页面的顶部。这可能有点烦人,但是,通常情况下,这个功能可能会非常方便。

原文如下:

As you traverse the internet, you will often encounter URLs that have tracking or referral junk tacked on the end. You probably don't want all that garbage included when you share a link, and Chrome recently started taking care of that for you. As of v64, the browser trims off unnecessary strings at the end of URLs.

The URL streamlining happens automatically when you use the Share menu in Chrome (but not Chrome Custom Tabs). You can copy to the clipboard or share directly to another app—no setup required. If you highlight the URL bar and select text manually, you can still get the full URL with all the junk at the end. You can test it yourself with this Amazon URL.

We suspect this feature is related to the "canonical page" URLs Google started supporting some time ago. We've seen similar features in AMP pages so that sharing the content would share a usable URL. The general URL streamlining seems subtly different, though. It doesn't work in Chrome v63 or earlier, but it's available in v64. That's in the stable channel now, and it came to beta and dev in the December-January timeframe.

There could be situations when you want to manually copy URLs to avoid this feature. Chrome's URL trimming will even remove anchor tags that load a page to a specific location, For example, the "Free" section of this sale roundup. Share that in Chrome v64 or higher, and it just loads the top of the page. That could be a bit annoying. More often than not, though, this feature is probably going to be incredibly handy.

PS:点击一下广告或者关注一下账号吧!

  • 发表于:
  • 原文链接http://kuaibao.qq.com/s/20180220A07RGH00?refer=cp_1026
  • 腾讯「腾讯云开发者社区」是腾讯内容开放平台帐号(企鹅号)传播渠道之一,根据《腾讯内容开放平台服务协议》转载发布内容。
  • 如有侵权,请联系 cloudcommunity@tencent.com 删除。

扫码

添加站长 进交流群

领取专属 10元无门槛券

私享最新 技术干货

扫码加入开发者社群
领券