MrOtherGuy / fx-autoconfig

Load custom javascript in browser context
Mozilla Public License 2.0
164 stars 10 forks source link

Clarification on what "userChrome.au.css" and "author_style.uc.css" are for #44

Open LupinIII opened 8 months ago

LupinIII commented 8 months ago

I'm confused about the difference between those two files (and the respective "ag" versions), if there is any and which files to use use for what. On is supposed to be in the resources folder, the other in the CSS folder. In the examples they have the same content (except for headers), so it seems they do the same. By the readme it seems that resources is the one to go for.

MrOtherGuy commented 8 months ago

I admit, that looks pretty confusing.

They are just examples on how you might load such stylesheet files. The scripts in profile/chrome/JS/ - userChrome_ag_css.sys.mjs and userChrome_au_css.uc.js are the script files that will actually cause Firefox to load userChrome.ag.css and userChrome.au.css

But the .css files in CSS/ directory are different. The loader will automatically pick them up and load them, just like your custom script files in JS/ directory.