TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Google Automatically Adds Scroll to Text Fragment to Search Results on Chrome

3 点作者 SaijoGeorge将近 5 年前

2 条评论

yamboy1将近 5 年前
I honestly dislike this feature, because it leads to very messy looking urls with lots of url escapes in them, as well as the whole `#:~:text` thing: (you might need to click on the url to see the escapes)<p><a href="https:&#x2F;&#x2F;unix.stackexchange.com&#x2F;questions&#x2F;198590&#x2F;what-is-a-bind-mount#:~:text=A%20bind%20mount%20is%20an,the%20same%20as%20the%20original" rel="nofollow">https:&#x2F;&#x2F;unix.stackexchange.com&#x2F;questions&#x2F;198590&#x2F;what-is-a-bi...</a>.
SaijoGeorge将近 5 年前
Google has been criticized by some experts for implementing the feature in Chrome by default since the feature can have some privacy issues. Here is a tweet <a href="https:&#x2F;&#x2F;twitter.com&#x2F;pes10k&#x2F;status&#x2F;1229835239565905921" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;pes10k&#x2F;status&#x2F;1229835239565905921</a> by Peter Snyder Security Researcher @ Brave and another comment from David Baron from Mozilla <a href="https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;standards-positions&#x2F;issues&#x2F;194#issuecomment-566719528" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mozilla&#x2F;standards-positions&#x2F;issues&#x2F;194#is...</a>.<p>And it looks like Google is now automatically adding Scroll To Text Fragment to Featured Snippets in Search results, this basically means that if you are on Chrome and click on the Featured Snippet they can automatically scroll and take you to the section of the page where the snippet was lifted from.<p>Try searching for <a href="https:&#x2F;&#x2F;www.google.com&#x2F;search?q=Will+emojis+and+HTML+tags+work+with+FAQPage+Schema" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;search?q=Will+emojis+and+HTML+tags+wo...</a> on Chrome Desktop. I was able to trigger them from Australia.<p>Another interesting thing is that it <i></i>only happens in Chrome<i></i>, Edge and Firefox did not show them and in some cases, the Featured Snippet did not appear as well, kinda makes the SERPs on other browsers feel quite inferior IMHO. <a href="https:&#x2F;&#x2F;www.google.com&#x2F;search?q=faq+page+Structured+data+type+definitions" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;search?q=faq+page+Structured+data+typ...</a> – try clicking on different browsers.<p>Even when the Featured Snippets are shown in these other browsers they don’t get the Scroll To Text Fragment treatment. <a href="https:&#x2F;&#x2F;www.google.com&#x2F;search?q=scroll+to+text+fragment" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;search?q=scroll+to+text+fragment</a> – try clicking on different browsers.<p>Obviously these other browsers don’t support Scroll To Text Fragment so it’s pointless to show them right, well in the case of Firefox yeah but Edge runs on Chromium and Scroll To Text Fragment actually works on it. Try clicking on <a href="https:&#x2F;&#x2F;tldrmarketing.com&#x2F;about-us&#x2F;#:~:text=Does%20Konami%20mean%20anything%20to%20you%3F" rel="nofollow">https:&#x2F;&#x2F;tldrmarketing.com&#x2F;about-us&#x2F;#:~:text=Does%20Konami%20...</a> on Edge.<p>From what I can see all Featured Snippets are getting the Scroll To Text Fragment treatment on Chrome desktop, would love to see examples when it’s not.