為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How to avoid content blocking while developing addons

more options

I have developed some addons for Firefox, but I met some problems that the function in addons would be stopped by the content blocking, This issue has some impact to our company's product cause customer could only turn off it to enjoy the normal function in our product. Every time our customer use our product, they cannot find the shield quickly shown in the picture, so some information could not be shown, which leads to some issues on our product. Could you please help me avoid the content blocking in my development or give me some method? Thank you.

I have developed some addons for Firefox, but I met some problems that the function in addons would be stopped by the content blocking, This issue has some impact to our company's product cause customer could only turn off it to enjoy the normal function in our product. Every time our customer use our product, they cannot find the shield quickly shown in the picture, so some information could not be shown, which leads to some issues on our product. Could you please help me avoid the content blocking in my development or give me some method? Thank you.
附加的畫面擷圖

被選擇的解決方法

Hi samgsc, you might be able to find some explanation for the appearance of the shield on the drop-down and also in the Web Console.

If your add-on needs to inject scripts into pages that are from sites on the basic Tracking Protection list, you should consider using a different approach. It is not appropriate to ask users to disable Tracking Protection completely on one or more websites just to accommodate your scripts.

從原來的回覆中察看解決方案 👍 1

所有回覆 (3)

more options

You need to remove whatever is being blocked to make your add-ons work.

Content Blocking is a User Preference. I will not Turn Off or reduce Content Blocking for any add-ons.

more options

Hello samgsc,

You might be better off posting here :

https://discourse.mozilla.org/c/add-ons

more options

選擇的解決方法

Hi samgsc, you might be able to find some explanation for the appearance of the shield on the drop-down and also in the Web Console.

If your add-on needs to inject scripts into pages that are from sites on the basic Tracking Protection list, you should consider using a different approach. It is not appropriate to ask users to disable Tracking Protection completely on one or more websites just to accommodate your scripts.