User Tools

Site Tools


firefox

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
firefox [2021/09/09 19:48] – [Keywords] duckduckgo#Bangs rjtfirefox [2023/12/08 14:02] (current) – updaed note son userContent.css rjt
Line 15: Line 15:
 To tell websites that you prefer to view pages in dark mode (or...) To tell websites that you prefer to view pages in dark mode (or...)
  
-  - ''about:config'' +  * Set ''ui.systemUsesDarkTheme'' to:
-  - Find ''ui.systemUsesDarkTheme''+
     * ''0'' = light     * ''0'' = light
     * ''1'' = dark     * ''1'' = dark
-    * ''2'' no prefernce+    * ''2'' no preference
  
 If you want your UI to be dark you need to use a theme. If you want your UI to be dark you need to use a theme.
 +
 +=== Tracking ===
 +
 +Removes tracking extensions on URLs, except for [[google]] stuff :/
 +
 +  * Set ''privacy.query_stripping.enabled'' to ''TRUE''.
 +
 +Probably better alternative is to use a dedicated extension.
  
 === Updates === === Updates ===
Line 27: Line 34:
 To disable automatic updates you now have to do it though ''about:config'' :/ To disable automatic updates you now have to do it though ''about:config'' :/
  
-  - Enter ''about:config'' into the address bar, +  * Set ''app.update.auto'' to ''FALSE''.
-  - Search for 'update' +
-  - Find ''app.update.auto'' +
-  - Double-click on that link to change ''true'' to ''false''.+
  
 ===== Tips'n'Tricks ===== ===== Tips'n'Tricks =====
Line 44: Line 48:
 ^  %%+%%  | Tags, separate with spaces for multiple | Why isn't this %%#%% D: | ^  %%+%%  | Tags, separate with spaces for multiple | Why isn't this %%#%% D: |
  
-They're easy to forget, so I've added some memory-aid notes. There's a little add-on you can use to remind yourself: [[ffaddon>location-bar-characters]].+They're easy to forget, so I've added some [[memory]]-aid notes. There's a little add-on you can use to remind yourself: [[ffaddon>location-bar-characters]].
  
 Also see the [[#Keywords|§Keywords]] section below. Also see the [[#Keywords|§Keywords]] section below.
 +
 +==== Bookmarks ====
 +
 +If you want to import bookmarks I've made some notes on the syntax of the special [[html]] file: [[file_kinds#bookmarks|file_kinds§bookmarks]].
 +
 +Handy if you want to make the list by hand, or made a script to convert from different formats or whatever. Figuring this out so I can import bookmarks exported from [[mastodon]].
 +
 +This same format also works in [[Chrome]] and other browsers.
  
 ==== Keyboard Shortcuts ==== ==== Keyboard Shortcuts ====
Line 52: Line 64:
 ^ Address bar | ''Ctrl+L'' | ^ Address bar | ''Ctrl+L'' |
 ^ Bookmark | ''Ctrl+D'' | ^ Bookmark | ''Ctrl+D'' |
 +^ Jump to right-most tab | ''Alt+9'' |
 +^ Move tabs | ''Ctrl+Shift+PageUp|PageDown|Home|End'' |
  
 ==== Keywords ==== ==== Keywords ====
Line 57: Line 71:
 If you add //keywords// to your bookmarks, you can also go straight to those pages by typing the keyword. If you add //keywords// to your bookmarks, you can also go straight to those pages by typing the keyword.
  
-You can also use these for [[duckduckgo#Bangs|bang]]-like searches by bookmarking a site's search page/results and using ''%s'' to indicate where search terms go.+You can also use these for [[duckduckgo#Bangs|bang]]-like searches by bookmarking a site's search page/results and using ''%s'' to indicate where search terms go. A shortcut to creating these is to open the search page you want a keyword associated with, and right-click o nthe search box and add the keyword that way.
  
 ==== Reader View ==== ==== Reader View ====
Line 79: Line 93:
  
 As an alternative to add-ons like [[stylus]], you can simply add [[CSS]] rules to the file ''userContent.css''. It's slightly annoying in that you have to restart Firefox for it to reload the file, but you can use Stylus or the built-in developer tools (you can load files in the 'style editor' tab) to preview things. For styling Firefox itself you create a file called ''userChrome.css''. As an alternative to add-ons like [[stylus]], you can simply add [[CSS]] rules to the file ''userContent.css''. It's slightly annoying in that you have to restart Firefox for it to reload the file, but you can use Stylus or the built-in developer tools (you can load files in the 'style editor' tab) to preview things. For styling Firefox itself you create a file called ''userChrome.css''.
 +
 +NB: Currently userChrome is working fine, but userContent is not doing anything for me :(
  
 === Method === === Method ===
  
   - Open ''about:config'' and turn ''toolkit.legacyUserProfileCustomizations.stylesheets'' to ''True''.   - 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.+  - Open your profile directory (for me it's ''~/.mozilla/firefox/[profile name]'') and create a directory called ''chrome'' if it doesn't exist.
   - Inside ''chrome'' create a file called ''userContent.css''   - Inside ''chrome'' create a file called ''userContent.css''
   - Add rules to this, enclosed within ''@-moz-document domain([url]) {}'' that references the site you wish to target.   - Add rules to this, enclosed within ''@-moz-document domain([url]) {}'' that references the site you wish to target.
Line 103: Line 119:
   * https://www.userchrome.org/   * https://www.userchrome.org/
   * https://old.reddit.com/r/FirefoxCSS   * https://old.reddit.com/r/FirefoxCSS
 +
 +==== Sundry ====
 +
 +  * You can middle click on the reload page button (↻) to duplicate the current tab. Way easier than having to right-click on the tab and select it from the menu.
 +  * You can select multiple tabs with ''Ctrl'' and ''Shift'' clicking like you would in other programs.
 +  * Quickest way to see alternate stylesheets is ''Alt+v'' then ''y''.
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
firefox.1631180906.txt.gz · Last modified: 2021/09/09 19:48 by rjt