I want to add CSS to pages with a certain URL in much the same way that Greasemonkey adds JavaScript. I guess I could inject some CSS with a script, but that isn’t as clean.
Are there any browser plugins that let me do this? It doesn’t necessarily need to be a Firefox one.
If you have access to jQuery, you could do this pretty easily:
[Source]
This can also be done pretty easily with vanilla JavaScript:
[Source] (Apparently from “Dive into Greasemonkey” by Mark Pilgrim originally)
You might want to make sure your styles have
!importantdeclarations though.Having said that, it should be easy to remove the existing stylesheets this way too and perhaps even iterate elements and remove inline styles.