Skip to main content

如何查找將廣告注入網頁的Chrome擴展程序?

如何查找將廣告注入網頁的Chrome擴展程序?

Geoffrey Carr

廣告是互聯網上生活的一部分,但當不道德的擴展開始故意將廣告注入您的瀏覽體驗時,就該採取行動了!今天的超級用戶問答帖子的答案是幫助沮喪的讀者清理他的瀏覽體驗。

今天的問答環節由SuperUser提供,這是Stack Exchange的一個細分,Stack Exchange是一個社區驅動的問答網站分組。

屏幕截圖由Oliver Salzburg(超級用戶)提供。

問題

超級用戶閱讀器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.

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.

giorgio79找到這種刺激性擴展的最佳方法是什麼?

答案

超級用戶貢獻者Oliver Salzburg為我們提供了答案:

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

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

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

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.

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

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


有什麼要補充說明嗎?在評論中發聲。想要從其他精通技術的Stack Exchange用戶那裡閱讀更多答案嗎?在這裡查看完整的討論主題。

Link
Plus
Send
Send
Pin