Selaa lähdekoodia

Add devtools preferences

main
Ashton Charbonneau 1 vuosi sitten
vanhempi
commit
17357ff2e8
2 muutettua tiedostoa jossa 26 lisäystä ja 14 poistoa
  1. 10
    6
      README.md
  2. 16
    8
      user.js

+ 10
- 6
README.md Näytä tiedosto

@@ -1,8 +1,8 @@
1 1
 # Firefox
2 2
 
3
-Browser profile
3
+Browser profile configuration that can be set up directly within profile folders. Configuration is the same across devices and profiles, excepting a few settings adjusted manually.
4 4
 
5
-## Extensions / Scripts
5
+## Extensions
6 6
 
7 7
 - Adblock: [uBlock Origin](https://addons.mozilla.org/firefox/addon/ublock-origin/)
8 8
 	- Remove cookie banners: <https://www.i-dont-care-about-cookies.eu/abp/>
@@ -39,15 +39,19 @@ git pull origin main
39 39
 
40 40
 ## Reference
41 41
 
42
-- <http://kb.mozillazine.org/Profile_folder_-_Firefox>
43
-- <https://www.userchrome.org/what-is-userchrome-js.html>
44
-- `user.js`
42
+- Sample `user.js`
45 43
 	- <https://github.com/arkenfox/user.js>
46 44
 	- <https://github.com/yokoffing/Betterfox>
47 45
 - Styles
48
-	- <https://www.reddit.com/r/FirefoxCSS/comments/o1ccqe/a_different_way_of_displaying_the_container_color/>
49 46
 	- <https://github.com/AveYo/fox>
47
+	- <https://github.com/MrOtherGuy/firefox-csshacks>
48
+	- <https://github.com/black7375/Firefox-UI-Fix>
49
+	- <https://old.reddit.com/r/FirefoxCSS/comments/o1ccqe/a_different_way_of_displaying_the_container_color/>
50
+	- <https://old.reddit.com/r/FirefoxCSS/comments/osles3/menu_icons/>
51
+	- <https://old.reddit.com/r/FirefoxCSS/comments/obfa94/lepton_20_context_menu_icons_error_page/>
50 52
 - Scripts
53
+	- <http://kb.mozillazine.org/Profile_folder_-_Firefox>
54
+	- <https://www.userchrome.org/what-is-userchrome-js.html>
51 55
 	- <https://github.com/xiaoxiaoflood/firefox-scripts>
52 56
 	- <https://github.com/MrOtherGuy/fx-autoconfig>
53 57
 	- <https://greasyfork.org/en/scripts/3187-google-images-direct-link>

+ 16
- 8
user.js Näytä tiedosto

@@ -1,10 +1,13 @@
1 1
 /* Manual */
2 2
 // user_pref("browser.cache.disk.parent_directory", "/run/user/$(id -u)/firefox"); // linux: move disk cache to memory
3
+// user_pref("mousewheel.default.delta_multiplier_y", 250); // configure scroll speed (vertical)
4
+// user_pref("mousewheel.default.delta_multiplier_x", 250); // configure scroll speed (horizontal)
3 5
 
4 6
 /* Startup */
5 7
 user_pref("browser.startup.homepage", "https://www.google.ca"); // home page (change)
6 8
 user_pref("browser.startup.page", 3); // resume previous session on startup
7 9
 user_pref("browser.newtabpage.enabled", false); // blank new tab page
10
+user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // require memory cache for private browsing
8 11
 
9 12
 /* Behaviour */
10 13
 user_pref("browser.bookmarks.openInTabClosesMenu", false); // opening bookmarks doesn't close menu
@@ -23,7 +26,16 @@ user_pref("browser.urlbar.quickactions.enabled", false); // disable quick action
23 26
 user_pref("browser.urlbar.autoFill.adaptiveHistory.enabled", true); // enable adaptive history
24 27
 user_pref("browser.urlbar.shortcuts.quickactions", false); // disable quick actions
25 28
 user_pref("browser.urlbar.resultMenu.keyboardAccessible", false); // skip url suggestion menus
26
-user_pref("findbar.highlightAll", true); // highlight all matches
29
+user_pref("findbar.highlightAll", true); // highlight all found matches
30
+
31
+/* Dev tools */
32
+user_pref("devtools.command-button-screenshot.enabled", true); // enable screenshot button
33
+user_pref("devtools.command-button-rulers.enabled", true); // enable ruler button
34
+user_pref("devtools.debugger.remote-enabled", true); // enable remote debugging
35
+user_pref("devtools.chrome.enabled", true); // enable debugging browser chrome
36
+user_pref("devtools.screenshot.audio.enabled", false); // disable screenshot audio
37
+user_pref("devtools.editor.tabsize", 4); // indent size is 4 spaces
38
+user_pref("devtools.editor.expandtab", false); // indent with tabs
27 39
 
28 40
 /* Shutdown */
29 41
 // user_pref("privacy.sanitize.sanitizeOnShutdown", true); // clear data on shutdown
@@ -42,16 +54,17 @@ user_pref("layout.css.has-selector.enabled", true); // enable :has filter
42 54
 user_pref("browser.urlbar.groupLabels.enabled", false); // hide firefox suggest label
43 55
 user_pref("browser.compactmode.show", true); // add compact mode
44 56
 user_pref("browser.tabs.tabmanager.enabled", false); // hide tab manager until needed
57
+user_pref("privacy.userContext.enabled", true); // enable containers
58
+user_pref("privacy.userContext.ui.enabled", true); // enable containers
45 59
 
46 60
 /* Downloads */
47 61
 // user_pref("browser.download.useDownloadDir", false); // always ask whether to open or save files
48 62
 // user_pref("browser.download.always_ask_before_handling_new_types", true); // confirm new file types
49 63
 user_pref("browser.download.alwaysOpenPanel", false); // disable automatically opening download panel
50 64
 user_pref("browser.download.manager.addToRecentDocs", false); // disable adding downloads to recent documents
51
-user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // require memory cache for private browsing
52 65
 user_pref("browser.download.open_pdf_attachments_inline", true); // force PDFs to open in browser
53 66
 user_pref("pdfjs.disabled", false); // enable pdfjs
54
-user_pref("pdfjs.enableScripting", false); // enable scripts on pdfjs
67
+user_pref("pdfjs.enableScripting", false); // disable scripts on pdfjs
55 68
 
56 69
 /* Forms */
57 70
 user_pref("signon.autofillForms", false); // don't autofill login pages
@@ -68,10 +81,6 @@ user_pref("browser.tabs.warnOnClose", true); // warn on quit
68 81
 user_pref("app.update.suppressPrompts", true); // disable update warning
69 82
 user_pref("browser.urlbar.update2.engineAliasRefresh", true); // allow adding search engines manually
70 83
 
71
-/* Containers */
72
-user_pref("privacy.userContext.enabled", true); // enable containers
73
-user_pref("privacy.userContext.ui.enabled", true); // enable containers
74
-
75 84
 /* Fullscreen */
76 85
 user_pref("full-screen-api.transition-duration.enter", "0 0");
77 86
 user_pref("full-screen-api.transition-duration.leave", "0 0");
@@ -91,7 +100,6 @@ user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", 2.0);
91 100
 user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
92 101
 user_pref("general.smoothScroll.currentVelocityWeighting", 1.0);
93 102
 user_pref("general.smoothScroll.stopDecelerationWeighting", 1.0);
94
-//user_pref("mousewheel.default.delta_multiplier_y", 250);
95 103
 
96 104
 /* Bloat */
97 105
 user_pref("browser.startup.homepage_override.mstone", "ignore"); // disable welcome messages

Loading…
Peruuta
Tallenna