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
Next revisionBoth sides next revision
tool:software:firefox [2020/09/07 05:06] – Dark mode notes, removed setting up a feed reader as it is no longer supported :( rjtfirefox [2022/07/19 18:57] – reformatted the aboutconfig stuff a little rjt
Line 1: Line 1:
 ====== Firefox ====== ====== Firefox ======
  
-===== Config ===== +===== Configuration ===== 
-==== Updates ====+ 
 +==== about:config ==== 
 + 
 +An obscured, but powerful, method of configuring Firefox. You can edit settings by entering ''about:config'' in the address bar. From there you can search for settings and edit them. 
 + 
 +=== Bookmarks === 
 + 
 +In the 'New Bookmark' and 'Edit This Bookmark' menus that appear when you click the bookmark icon, there's a list of the most recently used folders in the 'Folder' drop-down. You can increase this by searching for ''browser.bookmarks.editDialog.maxRecentFolders'', and increasing or decreasing the number to suit. 
 + 
 +=== Dark Mode === 
 + 
 +To tell websites that you prefer to view pages in dark mode (or...) 
 + 
 +  * Set ''ui.systemUsesDarkTheme'' to: 
 +    * ''0'' = light 
 +    * ''1'' = dark 
 +    * ''2'' = no preference 
 + 
 +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 ===
  
 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 16: Line 41:
 You can narrow your searches by starting them with: You can narrow your searches by starting them with:
  
-^  %%^%%  | History | +^  %%^%%  | History 
-^  %%*%%  | Bookmarks | +^  %%*%%  | Bookmarks | A star, like the bookmark icon 
-^  %%%%%  | Tabs | +^  %%%%%  | Tabs 
-^  %%#%%  | Page titles | +^  %%#%%  | Page titles | Think of [[markdown]] titles | 
-^  %%@%%  | URLs | +^  %%@%%  | URLs 
-^  %%+%%  | Tags, separate with spaces for multiple |+^  %%+%%  | Tags, separate with spaces for multiple | Why isn't this %%#%% D: |
  
-They're easy to forget, but 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]].
  
-==== Dark Mode ====+Also see the [[#Keywords|§Keywords]] section below.
  
-To tell websites that you prefer to view pages i ndark mode (or...)+==== Bookmarks ====
  
-  - ''about:config'' +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]]. 
-  - Find ''ui.systemUsesDarkTheme'' + 
-    * ''0'' light +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]]
-    ''1'' = dark + 
-    ''2'' - no prefernce+This same format also works in [[Chrome]] and other browsers. 
 + 
 +==== Keyboard Shortcuts ===
 + 
 +^ Address bar | ''Ctrl+L'' | 
 +^ Bookmark | ''Ctrl+D'' 
 + 
 +==== Keywords ==== 
 + 
 +If you add //keywords// to your bookmarks, you can also go straight to those pages by typing the keyword.
  
-If you want your UI to be themed you need to use a theme.+You can also use these for [[duckduckgo#Bangs|bang]]-like searches by bookmarking site's search page/results and using ''%s'' to indicate where search terms go.
  
 ==== Reader View ==== ==== Reader View ====
Line 49: Line 83:
 ==== RSS ==== ==== RSS ====
  
 +Firefox has dropped support for [[RSS]], it doesn't even render feeds anymore. You can re-add support with plugins, plus add some other useful features:
 +
 +  * I use [[ffaddon>feed-preview]] to get the old RSS functions back. It renders previews of feeds, and puts an icon in the address bar when feeds are present. There are other add-ons that do the same thing.
 +  * I use [[ffaddon>youtube-rss-finder]] to make it easier to get feed links for [[Youtube]]. Like Feed Preview, it puts an icon in the address bar.
  
 ==== Styling ==== ==== Styling ====
  
-As an alternative to add-ons like [[stylus]] you can simply add [[language:CSS]] rules to the file ''userContent.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''.
  
 === Method === === Method ===
Line 59: Line 97:
   - 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/[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''
-  - Added 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.
     * Instead of ''domain([url])'' you can use ''url'', ''regex'', etc. See: [[https://developer.mozilla.org/en-US/docs/Web/CSS/@document#Syntax|@document#Syntax]].     * Instead of ''domain([url])'' you can use ''url'', ''regex'', etc. See: [[https://developer.mozilla.org/en-US/docs/Web/CSS/@document#Syntax|@document#Syntax]].
 +    * For ''userChrome.css'' you don't need the ''@-moz-document'' stuff, just add the rules like normal.
  
-== Example ==+=== Examples ===
  
-<code>@-moz-document domain(wiki.ryliejamesthomas.net) { +== Hide useless search results == 
- body + 
- background-color:red;+<code>@-moz-document domain(duckduckgo.com) { 
 + .result[data-domain="www.w3schools.com"
 + display:none;
  }  }
 }</code> }</code>
 +
 +=== See Also ===
 +
 +  * https://www.userchrome.org/
 +  * https://old.reddit.com/r/FirefoxCSS
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 79: Line 125:
 <code bash>alias fix-firefox='rm -rf ~/.cache/mozilla/firefox'</code> <code bash>alias fix-firefox='rm -rf ~/.cache/mozilla/firefox'</code>
  
-{{tag>fixes "web browser" bash}}+===== See Also ===== 
 +  * [[github>mozilla/readability]] - Standalone version of the reader mode. 
 + 
 +{{tag>bash fixes software web-browser}}
firefox.txt · Last modified: 2023/12/08 14:02 by rjt