User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tool:software:firefox [2019/05/06 01:03]
rjt Info on disabling auto updates
tool:software:firefox [2020/05/02 08:15] (current)
rjt [Styling] double quotes seem to break the styles? Note on other syntax
Line 50: Line 50:
 === See Also === === See Also ===
   * [[https://​​en-US/​docs/​Mozilla/​Firefox/​Releases/​2/​Adding_feed_readers_to_Firefox|Adding feed readers to Firefox]]   * [[https://​​en-US/​docs/​Mozilla/​Firefox/​Releases/​2/​Adding_feed_readers_to_Firefox|Adding feed readers to Firefox]]
 +==== Styling ====
 +As an alternative to add-ons like [[stylus]] you can simply add [[language:​CSS]] rules to the file ''​userContent.css''​.
 +=== Method ===
 +  - Open ''​about:​config''​ and turn ''​toolkit.legacyUserProfileCustomizations.stylesheets''​ to ''​True''​.
 +  - Open your profile directory (for me it's ''​~/​.mozilla/​[profile name]''​) and create a directory called ''​chrome''​ if it doesn'​t exist.
 +  - Inside ''​chrome''​ create a file called ''​userContent.css''​
 +  - Added rules to this, enclosed within ''​@-moz-document domain([url]) {}''​ that references the site you wish to target.
 +    * Instead of ''​domain([url])''​ you can use ''​url'',​ ''​regex'',​ etc. See: [[https://​​en-US/​docs/​Web/​CSS/​@document#​Syntax|@document#​Syntax]].
 +== Example ==
 +<​code>​@-moz-document domain( {
 + body {
 + background-color:​red;​
 + }
 +===== Troubleshooting =====
 +==== Browser works, pages don't load ====
 +Sometimes after a crash Firefox will start-up just fine, but pages won't load. Deleting ''​~/​.cache/​mozilla''​ seems to fix it.
 +I ended up making an //alias// in my ''​.bashrc'':​
 +<code bash>​alias fix-firefox='​rm -rf ~/​.cache/​mozilla/​firefox'</​code>​
 +{{tag>​fixes "web browser"​ bash}}
tool/software/firefox.1557118980.txt.gz · Last modified: 2019/05/06 01:03 by rjt