博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
chrome扩展程序_如何找到将广告注入网页的Chrome扩展程序?
阅读量:2508 次
发布时间:2019-05-11

本文共 2684 字,大约阅读时间需要 8 分钟。

chrome扩展程序

chrome扩展程序

how-do-you-find-chrome-extensions-that-inject-ads-into-web-pages-00

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 .

屏幕快照由 。

问题 (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打开开发人员工具 。 或者,您可以从“ 汉堡包”菜单中打开“ 开发人员工具 ”。

how-do-you-find-chrome-extensions-that-inject-ads-into-web-pages-01

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

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

how-do-you-find-chrome-extensions-that-inject-ads-into-web-pages-02

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.

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

how-do-you-find-chrome-extensions-that-inject-ads-into-web-pages-03


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

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

翻译自:

chrome扩展程序

转载地址:http://xibwd.baihongyu.com/

你可能感兴趣的文章
Centos 7.5安装 Redis 5.0.0
查看>>
嵌入式Linux学习笔记(0)基础命令。——Arvin
查看>>
二分图匹配
查看>>
c++ 模板template
查看>>
javascript中的string对象
查看>>
CString的成员函数详解
查看>>
Appium Studio 初体验(windows做ios自动化,录制appium脚本)
查看>>
学习java前端 两种form表单提交方式
查看>>
Linux常用命令
查看>>
整体二分&cdq分治 ZOJ 2112 Dynamic Rankings
查看>>
【POJ2976】Dropping tests (01分数规划入门题)
查看>>
通过正则表达式获取url中参数
查看>>
86.运算符重载
查看>>
cxx signal信号捕获
查看>>
《Android开发艺术探索》读书笔记——Cha3.2.3改变布局参数实现View的滑动
查看>>
python闭包与装饰器
查看>>
Acegi 源码解释
查看>>
Activity的几种启动跳转方式
查看>>
LCA最近公共祖先Tarjan(离线)
查看>>
牛客练习赛16 E求值
查看>>