Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

Add-ons do not work on this site

  • 6 trả lời
  • 2 gặp vấn đề này
  • 32 lượt xem
  • Trả lời mới nhất được viết bởi jk192564

more options

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?

Giải pháp được chọn

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 .

Đọc câu trả lời này trong ngữ cảnh 👍 0

Tất cả các câu trả lời (6)

more options

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

more options

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.

more options

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.

more options

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

more options

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.

more options

Giải pháp được chọn

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 .