X
Tap here to go to the mobile version of the site.

Support Forum

Add-ons do not work on this site

Posted

I'm referring to this site support.mozilla.org. It looks like add-ons are disabled, add-ons like uBlock origin and Stylus have no effect on the page. How do I use these add-ons on support.mozilla.org?

I'm referring to this site support.mozilla.org. It looks like add-ons are disabled, add-ons like uBlock origin and Stylus have no effect on the page. How do I use these add-ons on support.mozilla.org?

Chosen solution

I have found a solution. Sites listed in extensions.webextensions.restrictedDomains at about:config restrict WebExtensions. To solve this, remove the site in question from extensions.webextensions.restrictedDomains .

Read this answer in context 0
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

FredMcD
  • Top 10 Contributor
4230 solutions 59026 answers

Helpful Reply

It might be there is nothing to block. What is Stylus suppose to do to the page?

It might be there is nothing to block. What is Stylus suppose to do to the page?
Was this helpful to you? 1
Quote

Question owner

I don't think that's the case, the add-ons literally don't work. Activating the element picker in uBlock does not display anything, adding custom CSS styles on stylus doesn't affect the page either.

I don't think that's the case, the add-ons literally don't work. Activating the element picker in uBlock does not display anything, adding custom CSS styles on stylus doesn't affect the page either.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17424 solutions 157436 answers

Helpful Reply

Most (all) Mozilla websites prohibit to inject JavaScript on their web pages via CSP policies (only the website is allowed to inject JavaScript). This makes extensions that use this to stop working. Most extensions that are affected have a remark on their Addons page to notify you. This affect JavaScript bookmarklets as well.

Most (all) Mozilla websites prohibit to inject JavaScript on their web pages via CSP policies (only the website is allowed to inject JavaScript). This makes extensions that use this to stop working. Most extensions that are affected have a remark on their Addons page to notify you. This affect JavaScript bookmarklets as well. *https://developer.mozilla.org/en/Security/CSP
Was this helpful to you? 1
Quote

Question owner

Does that mean it is impossible to use uBlock and the like on pages with those CSP policies? I wanted to change some elements of the site

Does that mean it is impossible to use uBlock and the like on pages with those CSP policies? I wanted to change some elements of the site
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17424 solutions 157436 answers

If you can't do this with an extension because of CSP then you can use userContent.css with a @-moz-document domain(){} block to restrict the code to a specific domain.

If you can't do this with an extension because of CSP then you can use userContent.css with a @-moz-document domain(){} block to restrict the code to a specific domain.
Was this helpful to you?
Quote

Chosen Solution

I have found a solution. Sites listed in extensions.webextensions.restrictedDomains at about:config restrict WebExtensions. To solve this, remove the site in question from extensions.webextensions.restrictedDomains .

I have found a solution. Sites listed in extensions.webextensions.restrictedDomains at about:config restrict WebExtensions. To solve this, remove the site in question from extensions.webextensions.restrictedDomains .
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.