Can an extension inject CSS to modify how another CSS looks?

Talk about add-ons and extension development.
Post Reply
User avatar
Foxinabox
Posts: 166
Joined: November 10th, 2014, 8:29 pm

Can an extension inject CSS to modify how another CSS looks?

Post by Foxinabox »

Can an extension inject CSS to modify how another CSS looks?

Can an extension modify the CSS in a moz-extension:// page?
morat
Posts: 6414
Joined: February 3rd, 2009, 6:29 pm

Re: Can an extension inject CSS to modify how another CSS lo

Post by morat »

Addons are explicitly blocked from operating on another addon's moz-extension page.

How can I execute a userscript on a moz-extension page?
http://stackoverflow.com/questions/52131490

You can change the style with the userContent.css file.

Here is how to change the background color of the eye dropper icon in the uBO popup.

Code: Select all

/* Firefox userContent.css */

@-moz-document regexp("moz-extension://.*/popup.html") {
  html[id="uBO-popup-panel"] span[id="gotoPick"] {
    background-color: orange !important;
  }
}
http://kb.mozillazine.org/UserContent.css

More info: http://forums.mozillazine.org/viewtopic ... #p14772164

uBlock Origin
http://addons.mozilla.org/firefox/addon/ublock-origin/
Post Reply