chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?

chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?

chrome扩展程序

chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?

Ads are a part of life on the Internet, but when an unscrupulous extension starts purposely injecting ads into your browsing experience, then it is time to take action! Today’s SuperUser Q&A post has the answer to help a frustrated reader clean up his browsing experience.

广告是Internet上生活的一部分,但是当不道德的扩展故意将广告注入您的浏览体验时,就该采取行动了! 今天的SuperUser Q&A帖子提供了答案,可以帮助沮丧的读者整理自己的浏览体验。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Screenshot courtesy of Oliver Salzburg (SuperUser).

屏幕快照由Oliver Salzburg(SuperUser)提供

问题 (The Question)

SuperUser reader giorgio79 wants to know how to find the Chrome extension that is injecting unwanted ads into his browsing experience:

超级用户阅读器giorgio79想知道如何找到将不需要的广告注入他的浏览体验的Chrome扩展程序:

I use Google Chrome and recently noticed random ads showing up, either embedded in web page content or by redirection. When I click on a link, an ad page opens up instead of the proper web page.

我使用的是Google Chrome浏览器,最近发现随机广告出现在网页内容中或通过重定向显示。 当我单击链接时,会打开一个广告页面,而不是正确的网页。

I suspect these ads are being injected by a Chrome extension, but how can I find the offending one? The ads seem to appear at random in an intermittent manner.

我怀疑这些广告是由Chrome扩展程序注入的,但是如何找到有问题的广告? 广告似乎以间歇方式随机出现。

What is the best way for giorgio79 to find this irritating extension?

giorgio79找到这个令人讨厌的扩展的最佳方法是什么?

答案 (The Answer)

SuperUser contributor Oliver Salzburg has the answer for us:

超级用户贡献者Oliver Salzburg为我们提供了答案:

Depending on your JavaScript knowledge, you can inspect the scripts that can manipulate websites you visit.

根据您JavaScript知识,您可以检查可以操纵您访问的网站的脚本。

1. Press F12 to open the Developer Tools. Alternatively, you can open the Developer Tools from the Hamburger Menu.

1.F12打开开发人员工具 。 或者,您可以从“ 汉堡包”菜单中打开“ 开发人员工具 ”。

chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?

2. On the Sources Tab, select the Content Scripts Tab. You should see a list of all the extensions that load content script.

2.在“ 源”选项卡上 ,选择“ 内容脚本”选项卡 。 您应该看到加载内容脚本的所有扩展的列表。

chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?

Content Script is the term used for scripts that are running in the context of the website you are visiting. These scripts have the ability to manipulate web content in any way they want.

内容脚本是用于在您访问的网站的上下文中运行的脚本的术语。 这些脚本具有以所需方式操纵Web内容的能力。

3. You can now inspect those scripts and see how they are affecting the web page you are viewing.

3.现在,您可以检查那些脚本,并查看它们如何影响您正在查看的网页。

Hint: In case they are using minified sources, enable the code beautifier.

提示:如果他们使用缩小的源,请启用代码美化器。

chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?


Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/213096/how-do-you-find-chrome-extensions-that-inject-ads-into-web-pages/

chrome扩展程序