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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tell HN: You.com extension injects tracking beacons across the web and locally

46 点作者 kytazo大约 2 年前
Well, I was experimenting with search engines in my browser and I had you.com search extension installed to try it out.<p>I didn&#x27;t get to remove the extension and a few days ago while I was on the element inspector in devtools I noticed a strange div on the bottom of the page which contained a class of &quot;you-firefox-addons-beacon&quot;. Needless to say I forward immediately and removed the extension.<p>I didn&#x27;t get the chance to share it then and I happened to think about it today. Went ahead and re-installed the extension to make sure its still the case and no surprises it is.<p>I think this won&#x27;t come as a big surprise as to my knowledge you.com is vc-backed so that is something one would most likely anticipate in such scenarios. Thought I share that as it might be interesting to know for people using the engine&#x2F;extension.

5 条评论

lolc大约 2 年前
As somebdoy who is currently trying out you.com at work, I&#x27;m interested to know what their rationale for this is. Meddling in the DOM of third parties requires a good reason! I have a bunch of extension installed who I want to do this. But you.com is not among them.
thesunkid大约 2 年前
Hey there! Sorry that name of the div confuses you.<p>But the div doesn&#x27;t mean to be injected to anywhere else except you.com site and localhost (for our own testing). It does nothing but let us know if you are in a browser with the extension installed when accessing to our site, so that we show you a clean page without extension nudge (<a href="https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension&#x2F;blob&#x2F;master&#x2F;content-script.js">https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension&#x2F;blob...</a>).
uberman大约 2 年前
How would they provide personalized search results without tracking you?<p>I dont want this to come across as condoning the tracking. I hate being snooped on.<p>But everything including your vacuum tries to track you.<p>Anything that markets itself as personalized is just weasle speak for tracking your every move.
评论 #34800201 未加载
bryanmccann大约 2 年前
Hi there this is Bryan, CTO at you.com This post is not true: the you.com extension does not inject tracking beacons across the web or locally.<p>I went back and looked at the open source code, and I can see how someone might misunderstand what is happening so I will clarify here with pointers to the open source code as well. The Firefox extension should be unminified too, so anyone who has it installed can check that the code I&#x27;m referring to is represented in that open source repository I will link to below.<p>Let&#x27;s walk through the extension code, starting with the relevant part of the manifest.json:<p>&quot;content_scripts&quot;: [ { &quot;matches&quot;: [&quot;<i>:&#x2F;&#x2F;localhost&#x2F;</i>&quot;, &quot;<i>:&#x2F;&#x2F;you.com&#x2F;</i>&quot;, &quot;<i>:&#x2F;&#x2F;</i>.you.com&#x2F;<i>&quot;], &quot;js&quot;: [&quot;content-script.js&quot;] }<p>This says that on domains that match [&quot;</i>:&#x2F;&#x2F;localhost&#x2F;<i>&quot;, &quot;</i>:&#x2F;&#x2F;you.com&#x2F;<i>&quot;, &quot;</i>:&#x2F;&#x2F;<i>.you.com&#x2F;</i>&quot;], we run content-script.js.<p>source: <a href="https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension&#x2F;blob&#x2F;19bbf1f8c3d2bda34b7c62c2efddc54a67edbca0&#x2F;manifest.json#L25">https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension&#x2F;blob...</a><p>In content-script.js we have:<p>``` let beacon = document.createElement(&quot;div&quot;); beacon.className = &quot;you-firefox-addons-beacon&quot; document.body.appendChild(beacon); ``` <a href="https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension&#x2F;blob&#x2F;19bbf1f8c3d2bda34b7c62c2efddc54a67edbca0&#x2F;content-script.js">https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension&#x2F;blob...</a><p>So if you are on localhost or a you.com owned domain (certainly not &quot;across the web&quot;), we add a div to the page that does nothing by itself. We do this so that our client side code can detect whether you have the extension when you are on you.com and other you.com subdomains. We had the localhost in there for convenience while developing and should have removed it before publishing, but to be clear, even with that localhost match in the code, there is still no tracking, not across the web and not locally. We&#x27;ll take the localhost match out out though to avoid any confusion.<p>We unfortunately named that div &quot;you-firefox-addons-beacon&quot;, which I think misled the original poster to think we were doing something with the Beacon API (<a href="https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;Beacon_API" rel="nofollow">https:&#x2F;&#x2F;developer.mozilla.org&#x2F;en-US&#x2F;docs&#x2F;Web&#x2F;API&#x2F;Beacon_API</a>). But we are not. It is just an empty div that our client side code checks for when it loads the page for you.com domains and subdomains so you don&#x27;t see the &quot;Install extension&quot; buttons and things like that once you have the extension. We will change the name so that it does not create this misperception moving forward.<p>And to address the downstream concerns in the other comments, we don&#x27;t track users around the web. We don&#x27;t use tracking to provide personalized search results -- we use the App Preferences feature that is available after someone signs up.<p>I&#x27;m glad that it is newsworthy that our search engine and browser plug-ins don&#x27;t spy on our users! Please check the source code if you&#x27;d like: <a href="https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension">https:&#x2F;&#x2F;github.com&#x2F;You-OpenSource&#x2F;You-Firefox-Extension</a> and spread the good word!
评论 #34815621 未加载
andrewstuart大约 2 年前
It would be newsworthy to if a search engine &#x2F; browser plug-in <i>didn’t</i> spy on its users.<p>I just take it as given that they all do, and you just need to examine the source code to see where and how.