MozillaZine

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

Talk about add-ons and extension development.
Foxinabox

User avatar
 
Posts: 166
Joined: November 10th, 2014, 8:29 pm

Post Posted March 13th, 2019, 4:02 pm

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

Can an extension modify the CSS in a moz-extension:// page?

morat
 
Posts: 3235
Joined: February 3rd, 2009, 6:29 pm

Post Posted March 13th, 2019, 5:31 pm

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: viewtopic.php?p=14772164#p14772164

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

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 2 guests