1 Reply
      Latest reply on Jan 29, 2020 1:24 PM by bweinstein
      key-extension Level 1 Level 1 (0 points)

        In normal javascript, it seems like it's possible to select a particular stylesheet and add a rule to it via .addRule(...). Yet, it doesn't seem my injected script has access to my injected stylesheet because console.log(document.styleSheets) does not list my app-extension's injected stylesheet. Is there any way to access my injected stylesheet from my injected script so I can customize the styling of the elements I generate? There are, of course, cheesy workarounds. I could simply add the rules I want to a webpage's first stylesheet, but that lowers the seniority of the rule (in that adding !important tags won't guarantee it's implemented). The ultimage goal is to let user's customize the coloring of the pretty complicated & dynamic elements rendered by my injected script.

         

        Thanks,

         

        Pat