浏览代码

Improve extension documentation

main
Ashton Charbonneau 1 个月前
父节点
当前提交
bedb0143a5
共有 2 个文件被更改,包括 259 次插入235 次删除
  1. 94
    76
      README.md
  2. 165
    159
      user.js

+ 94
- 76
README.md 查看文件

@@ -1,76 +1,94 @@
1
-# Firefox
2
-
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
-
5
-## Extensions
6
-
7
-- Adblock: [uBlock Origin](https://addons.mozilla.org/firefox/addon/ublock-origin/)
8
-	- Remove cookie banners: <https://www.i-dont-care-about-cookies.eu/abp/>
9
-	- Shorten URLs: <https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt>
10
-	- Custom: <https://letsblock.it/filters>
11
-- Containers: [Multi-Account Containers](https://addons.mozilla.org/firefox/addon/multi-account-containers/) with [Temporary Containers](https://addons.mozilla.org/firefox/addon/temporary-containers/)
12
-- Images: [Hover Zoom+](https://addons.mozilla.org/firefox/addon/hover-zoom-plus/)
13
-- Navigation: [Vimium C](https://addons.mozilla.org/firefox/addon/vimium-c/)
14
-- Passwords: [KeePassXC-Browser](https://addons.mozilla.org/firefox/addon/keepassxc-browser/)
15
-- Paywalls: [Bypass Paywalls Clean](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean)
16
-- Redirects: [Skip Redirect](https://addons.mozilla.org/firefox/addon/skip-redirect/)
17
-- YouTube: [Sponsorblock](https://addons.mozilla.org/firefox/addon/sponsorblock/) and [DeArrow](https://addons.mozilla.org/firefox/addon/dearrow/) (both a bit heavy)
18
-- Reddit: [RES](https://addons.mozilla.org/firefox/addon/reddit-enhancement-suite/) (maybe replace)
19
-- Trackers: [Torrent Control](https://addons.mozilla.org/en-CA/firefox/addon/torrent-control/) (replace)
20
-
21
-## Profiles / Containers
22
-
23
-- Ashton
24
-	- *Default*
25
-	- Finance
26
-	- Social
27
-- Work
28
-	- *Default*
29
-	- Personal
30
-
31
-## Setup
32
-
33
-```
34
-git init
35
-git config --local status.showUntrackedFiles no
36
-git remote add origin $URL
37
-git pull origin main
38
-```
39
-
40
-## Notes
41
-
42
-- Control browser instance via devtools protocol (playwright)
43
-- Development: devtools, modify headers, disable CSP
44
-- Quick navigation (specific pages, custom search engines, previously closed page)
45
-- Context menu (adjust for common operations)
46
-- Shortcuts
47
-	- Tabs: move, pop out, close, duplicate
48
-	- Screenshots: full page, certain area, zoomed
49
-	- Bookmark or note to revisit a tab
50
-	- Search, navigate, etc. (most recent tab, regex search, spacial navigation)
51
-- Export bookmarks and history
52
-- Learn and adjust to vomnibar
53
-- Bookmark tagging and export
54
-
55
-## Reference
56
-
57
-- Sample `user.js`
58
-	- <https://github.com/arkenfox/user.js>
59
-	- <https://github.com/yokoffing/Betterfox>
60
-- Styles
61
-	- <https://github.com/AveYo/fox>
62
-	- <https://github.com/MrOtherGuy/firefox-csshacks>
63
-	- <https://github.com/black7375/Firefox-UI-Fix>
64
-	- <https://old.reddit.com/r/FirefoxCSS/comments/o1ccqe/a_different_way_of_displaying_the_container_color/>
65
-	- <https://old.reddit.com/r/FirefoxCSS/comments/osles3/menu_icons/>
66
-	- <https://old.reddit.com/r/FirefoxCSS/comments/obfa94/lepton_20_context_menu_icons_error_page/>
67
-- Scripts
68
-	- <http://kb.mozillazine.org/Profile_folder_-_Firefox>
69
-	- <https://www.userchrome.org/what-is-userchrome-js.html>
70
-	- <https://github.com/xiaoxiaoflood/firefox-scripts>
71
-	- <https://github.com/MrOtherGuy/fx-autoconfig>
72
-	- <https://greasyfork.org/en/scripts/3187-google-images-direct-link>
73
-	- <https://greasyfork.org/en/scripts/10096-general-url-cleaner>
74
-	- <https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks>
75
-	- <https://greasyfork.org/en/scripts/427254-preventpagevisibility>
76
-	- <https://greasyfork.org/en/scripts/429635-always-on-focus>
1
+# Firefox
2
+
3
+Profile configuration that can be set up directly within profile folders. Configuration is the same across version, devices, and profiles, excepting a few settings adjusted manually.
4
+
5
+## Setup
6
+
7
+1. Change [browser theme](about:addons#themes) to dark
8
+2. Set up [Firefox sync](about:preferences#sync)
9
+3. Install and configure shared extensions
10
+	- [uBlock Origin](https://addons.mozilla.org/firefox/addon/ublock-origin/)
11
+		- **Import from Firefox Sync**
12
+		- `Enable cloud storage support` = `true`
13
+		- `Custom filters` =
14
+			- <https://raw.githubusercontent.com/DandelionSprout/adfilt/master/LegitimateURLShortener.txt>
15
+			- <https://git.ashtonc.ca/ashton/ubo-filters/raw/branch/main/ubo-filters.txt>
16
+	- [Multi-Account Containers](https://addons.mozilla.org/firefox/addon/multi-account-containers/)
17
+		- Default = `[ "Work (Blue/Circle)" ]`
18
+		- Work = `[ "Personal (Green/Circle)" ]`
19
+	- [Temporary Containers](https://addons.mozilla.org/firefox/addon/temporary-containers/)
20
+		- **Import from Firefox Sync**
21
+		- `Container Name Prefix` = `T`
22
+		- `Container Number` = `Reuse available numbers`
23
+		- `Context Menu` = `false`
24
+		- `Keyboard shorcuts` = `[ "Alt+C", "Alt+X", "Alt+O" ]`
25
+		- Add shortcut to toolbar
26
+	- [Hover Zoom+](https://addons.mozilla.org/firefox/addon/hover-zoom-plus/)
27
+		- `Use prev/next action keys (or mousewheel) to change video position by` = `4`
28
+		- `Show timestamp on videos` = `true`
29
+		- `Audio volume for unmuted videos` = `100`
30
+		- `Play audio sources such as MP3` = `true`
31
+		- `Audio volume` = `100`
32
+		- `Delays` = `0`
33
+		- `Action keys` = `[ "Close", "View previous", "View next" ]`
34
+		- `Add viewed pictures to the browser's history` = `true`
35
+		- `Allow rewrite of headers for HTTP(S) request or response` = `true`
36
+	- [Tridactyl](https://addons.mozilla.org/firefox/addon/tridactyl-vim/)
37
+	- [Bypass Paywalls Clean](https://github.com/bpc-clone/bypass-paywalls-firefox-clean)
38
+		- `Opt-in` = `enable`
39
+4. Install and configure additional extensions
40
+	- [Sponsorblock](https://addons.mozilla.org/firefox/addon/sponsorblock/)
41
+	- [DeArrow](https://addons.mozilla.org/firefox/addon/dearrow/)
42
+		- `"3rdparty"."Extensions"."[email protected]"."licenseKey" = "$key"`
43
+	- [Torrent Control](https://addons.mozilla.org/en-CA/firefox/addon/torrent-control/)
44
+	- [Reddit Enhancement Suite](https://addons.mozilla.org/firefox/addon/reddit-enhancement-suite/)
45
+	- [KeePassXC-Browser](https://addons.mozilla.org/firefox/addon/keepassxc-browser/)
46
+
47
+## Setup
48
+
49
+```
50
+git init
51
+git config --local status.showUntrackedFiles no
52
+git remote add origin $URL
53
+git pull origin main
54
+```
55
+
56
+## Notes
57
+
58
+- Control browser instance via devtools protocol (playwright / puppeteer)
59
+- Development: devtools, modify headers, disable CSP
60
+- Quick navigation (specific pages, custom search engines, previously closed page)
61
+- Context menu (adjust for common operations)
62
+- Shortcuts
63
+	- Tabs: move, pop out, close, duplicate
64
+	- Screenshots: full page, certain area, zoomed
65
+	- Bookmark or note to revisit a tab
66
+	- Search, navigate, etc. (most recent tab, regex search, spacial navigation)
67
+- Export bookmarks and history
68
+- Learn and adjust to vomnibar
69
+- Bookmark tagging and export
70
+- Disable reserved keyboard shortcuts
71
+- Play videos in mpv via hotkey
72
+
73
+## Reference
74
+
75
+- Sample `user.js`
76
+	- <https://github.com/arkenfox/user.js>
77
+	- <https://github.com/yokoffing/Betterfox>
78
+- Styles
79
+	- <https://github.com/AveYo/fox>
80
+	- <https://github.com/MrOtherGuy/firefox-csshacks>
81
+	- <https://github.com/black7375/Firefox-UI-Fix>
82
+	- <https://old.reddit.com/r/FirefoxCSS/comments/o1ccqe/a_different_way_of_displaying_the_container_color/>
83
+	- <https://old.reddit.com/r/FirefoxCSS/comments/osles3/menu_icons/>
84
+	- <https://old.reddit.com/r/FirefoxCSS/comments/obfa94/lepton_20_context_menu_icons_error_page/>
85
+- Scripts
86
+	- <http://kb.mozillazine.org/Profile_folder_-_Firefox>
87
+	- <https://www.userchrome.org/what-is-userchrome-js.html>
88
+	- <https://github.com/xiaoxiaoflood/firefox-scripts>
89
+	- <https://github.com/MrOtherGuy/fx-autoconfig>
90
+	- <https://greasyfork.org/en/scripts/3187-google-images-direct-link>
91
+	- <https://greasyfork.org/en/scripts/10096-general-url-cleaner>
92
+	- <https://greasyfork.org/en/scripts/431691-bypass-all-shortlinks>
93
+	- <https://greasyfork.org/en/scripts/427254-preventpagevisibility>
94
+	- <https://greasyfork.org/en/scripts/429635-always-on-focus>

+ 165
- 159
user.js 查看文件

@@ -1,159 +1,165 @@
1
-/* Manual */
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)
5
-
6
-/* Startup */
7
-user_pref("browser.startup.homepage", "https://www.google.ca"); // home
8
-user_pref("browser.startup.page", 3); // resume previous session on startup
9
-user_pref("browser.newtabpage.enabled", false); // blank new tab page
10
-user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // require memory cache for private browsing
11
-
12
-/* Behaviour */
13
-user_pref("browser.bookmarks.openInTabClosesMenu", false); // opening bookmarks doesn't close menu
14
-user_pref("browser.tabs.loadBookmarksInBackground", true); // allow opening bookmarks in background
15
-user_pref("layout.word_select.eat_space_to_next_word", false); // don't select extra space after words
16
-user_pref("general.autoScroll", true); // scroll on middle click
17
-user_pref("browser.tabs.searchclipboardfor.middleclick", false);
18
-user_pref("browser.ctrlTab.sortByRecentlyUsed", false); // ctrl+tab cycles in order
19
-user_pref("zoom.minPercent", 10); // adjust minimum zoom value
20
-user_pref("toolkit.zoomManager.zoomValues", ".1,.3,.5,.6,.7,.8,.85,.9,.95,1,1.05,1.1,1.15,1.2,1.3,1.4,1.45,1.5,1.55,1.6,1.7,1.8,1.9,2,2.5,3,4,5,10"); // adjust zoom increments (not mouse wheel)
21
-user_pref("ui.key.menuAccessKeyFocuses", false); // alt key doesn't open top bar
22
-user_pref("browser.urlbar.suggest.topsites", false); // don't suggest top sites
23
-user_pref("browser.urlbar.suggest.calculator", true); // enable calculations in url bar
24
-user_pref("browser.urlbar.unitConversion.enabled", true); // enable unit conversions in url bar
25
-user_pref("browser.urlbar.quickactions.enabled", false); // disable quick actions
26
-user_pref("browser.urlbar.autoFill.adaptiveHistory.enabled", true); // enable adaptive history
27
-user_pref("browser.urlbar.shortcuts.quickactions", false); // disable quick actions
28
-user_pref("browser.urlbar.resultMenu.keyboardAccessible", false); // skip url suggestion menus
29
-user_pref("findbar.highlightAll", true); // highlight all found matches
30
-user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", false); // hide picture-in-picture button
31
-user_pref("media.videocontrols.picture-in-picture.video-toggle.min-video-secs", 10); // allow picture-in-picture for shorter videos
32
-
33
-/* Dev tools */
34
-user_pref("devtools.command-button-screenshot.enabled", true); // enable screenshot button
35
-user_pref("devtools.command-button-rulers.enabled", true); // enable ruler button
36
-user_pref("devtools.debugger.remote-enabled", true); // enable remote debugging
37
-user_pref("devtools.chrome.enabled", true); // enable debugging browser chrome
38
-user_pref("devtools.screenshot.audio.enabled", false); // disable screenshot audio
39
-user_pref("devtools.editor.tabsize", 4); // indent size is 4 spaces
40
-user_pref("devtools.editor.expandtab", false); // indent with tabs
41
-
42
-/* Content */
43
-user_pref("media.eme.enabled", true); // allow DRM
44
-user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // enable user styles
45
-user_pref("layout.css.has-selector.enabled", true); // enable :has filter
46
-user_pref("layout.css.grid-template-masonry-value.enabled", true);
47
-user_pref("dom.enable_web_task_scheduling", true);
48
-user_pref("browser.urlbar.groupLabels.enabled", false); // hide firefox suggest label
49
-user_pref("browser.compactmode.show", true); // add compact mode
50
-user_pref("browser.tabs.tabmanager.enabled", false); // hide tab manager until needed
51
-user_pref("privacy.userContext.enabled", true); // enable containers
52
-user_pref("privacy.userContext.ui.enabled", true); // enable containers
53
-
54
-/* Downloads */
55
-user_pref("browser.download.start_downloads_in_tmp_dir", true); // start downloads early
56
-user_pref("browser.download.useDownloadDir", false); // always ask where to save files
57
-user_pref("browser.download.alwaysOpenPanel", false); // disable automatically opening download panel
58
-user_pref("browser.download.autohideButton", true); // hide empty downloads button
59
-user_pref("browser.download.manager.addToRecentDocs", false); // disable adding downloads to recent documents
60
-
61
-/* PDFs */
62
-user_pref("browser.download.open_pdf_attachments_inline", true); // force PDFs to open in browser
63
-user_pref("pdfjs.disabled", false); // enable pdfjs
64
-user_pref("pdfjs.enableScripting", false); // disable scripts on pdfjs
65
-
66
-/* Forms */
67
-user_pref("signon.autofillForms", false); // don't autofill login pages
68
-user_pref("browser.formfill.enable", false); // don't autofill forms
69
-user_pref("signon.formlessCapture.enabled", false); // don't autofill passwords
70
-user_pref("extensions.formautofill.addresses.enabled", false); // don't autofill addresses
71
-user_pref("extensions.formautofill.creditCards.enabled", false); // don't autofill credit cards
72
-user_pref("signon.rememberSignons", false); // don't remember passwords
73
-
74
-/* Warnings */
75
-user_pref("browser.aboutConfig.showWarning", false); // disable about:config warning
76
-user_pref("browser.warnOnQuitShortcut", true); // warn on quit
77
-user_pref("browser.tabs.warnOnClose", true); // warn on quit
78
-user_pref("app.update.suppressPrompts", true); // disable update warning
79
-user_pref("browser.urlbar.update2.engineAliasRefresh", true); // allow adding search engines manually
80
-
81
-/* Fullscreen */
82
-user_pref("full-screen-api.transition-duration.enter", "0 0");
83
-user_pref("full-screen-api.transition-duration.leave", "0 0");
84
-user_pref("full-screen-api.transition.timeout", 0);
85
-user_pref("full-screen-api.warning.delay", -1);
86
-user_pref("full-screen-api.warning.timeout", 0);
87
-
88
-/* Scrolling */
89
-user_pref("apz.overscroll.enabled", true);
90
-user_pref("general.smoothScroll", true);
91
-user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
92
-user_pref("general.smoothScroll.msdPhysics.enabled", true);
93
-user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600);
94
-user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650);
95
-user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25);
96
-user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", "2.0");
97
-user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
98
-user_pref("general.smoothScroll.currentVelocityWeighting", "1.0");
99
-user_pref("general.smoothScroll.stopDecelerationWeighting", "1.0");
100
-
101
-/* Bloat */
102
-user_pref("browser.startup.homepage_override.mstone", "ignore"); // disable welcome messages
103
-user_pref("browser.newtabpage.activity-stream.default.sites", ""); // empty top sites list
104
-user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); // remove top sites from new tab page
105
-user_pref("browser.newtabpage.activity-stream.showSponsored", false); // disable sponsored stories
106
-user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // disable sponsored top sites
107
-user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); // disable recommended addons
108
-user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); // disable recommended features
109
-user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // remove stories from new tab page
110
-user_pref("extensions.getAddons.showPane", false); // disable recommendations in about:addons
111
-user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); // disable recommendations in about:addons
112
-user_pref("browser.discovery.enabled", false); // disable recommendations in about:addons
113
-user_pref("browser.messaging-system.whatsNewPanel.enabled", false); // disable what's new
114
-user_pref("extensions.pocket.enabled", false); // disable pocket
115
-user_pref("browser.uitour.enabled", false); // disable ui tour
116
-user_pref("browser.uitour.url", ""); // disable ui tour
117
-user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false); // removed sponsored suggestions
118
-user_pref("browser.preferences.moreFromMozilla", false); // remove more from mozilla
119
-user_pref("browser.shopping.experience2023.enabled", false);
120
-user_pref("browser.urlbar.pocket.featureGate", false);
121
-user_pref("browser.urlbar.trending.featureGate", false);
122
-user_pref("browser.privatebrowsing.vpnpromourl", ""); // hide private browsing promo
123
-
124
-/* Telemetry */
125
-user_pref("datareporting.policy.dataSubmissionEnabled", false);
126
-user_pref("datareporting.healthreport.uploadEnabled", false);
127
-user_pref("toolkit.telemetry.unified", false);
128
-user_pref("toolkit.telemetry.enabled", false);
129
-user_pref("toolkit.telemetry.server", "data:,");
130
-user_pref("toolkit.telemetry.archive.enabled", false);
131
-user_pref("toolkit.telemetry.newProfilePing.enabled", false);
132
-user_pref("toolkit.telemetry.shutdownPingSender.enabled", false);
133
-user_pref("toolkit.telemetry.updatePing.enabled", false);
134
-user_pref("toolkit.telemetry.bhrPing.enabled", false);
135
-user_pref("toolkit.telemetry.firstShutdownPing.enabled", false);
136
-user_pref("toolkit.telemetry.coverage.opt-out", true);
137
-user_pref("toolkit.coverage.opt-out", true);
138
-user_pref("toolkit.coverage.endpoint.base", "");
139
-user_pref("browser.ping-centre.telemetry", false);
140
-user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
141
-user_pref("browser.newtabpage.activity-stream.telemetry", false);
142
-user_pref("app.shield.optoutstudies.enabled", false);
143
-user_pref("app.normandy.enabled", false);
144
-user_pref("app.normandy.api_url", "");
145
-user_pref("breakpad.reportURL", "");
146
-user_pref("browser.tabs.crashReporting.sendReport", false);
147
-user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
148
-
149
-/* Shutdown */
150
-// user_pref("privacy.sanitize.sanitizeOnShutdown", false); // clear data on shutdown
151
-// user_pref("privacy.clearOnShutdown.cache", false); // save cache
152
-// user_pref("privacy.clearOnShutdown.cookies", false); // save cookies
153
-// user_pref("privacy.clearOnShutdown.downloads", true); // clear downloads (requires clearing history)
154
-// user_pref("privacy.clearOnShutdown.formdata", false); // save form data
155
-// user_pref("privacy.clearOnShutdown.history", false); // save history
156
-// user_pref("privacy.clearOnShutdown.offlineApps", false); // save cache
157
-// user_pref("privacy.clearOnShutdown.openWindows", false); // save open windows
158
-// user_pref("privacy.clearOnShutdown.sessions", false); // save sessions
159
-// user_pref("privacy.clearOnShutdown.siteSettings", false); // save site settings
1
+/* Manual */
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)
5
+
6
+/* Startup */
7
+user_pref("browser.startup.homepage", "https://www.google.ca"); // home
8
+user_pref("browser.startup.page", 3); // resume previous session on startup
9
+user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // require memory cache for private browsing
10
+
11
+/* New tab */
12
+user_pref("browser.newtabpage.enabled", false); // disable new tab page
13
+user_pref("browser.newtabpage.activity-stream.showWeather", false); // disable weather
14
+user_pref("browser.newtabpage.activity-stream.system.showWeather", false); // disable weather
15
+user_pref("browser.newtabpage.activity-stream.default.sites", ""); // empty top sites list
16
+user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); // remove top sites from new tab page
17
+user_pref("browser.newtabpage.activity-stream.showSponsored", false); // disable sponsored stories
18
+user_pref("browser.newtabpage.activity-stream.system.showSponsored", false); // disable sponsored stories
19
+user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // disable sponsored top sites
20
+user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false); // disable recommended addons
21
+user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false); // disable recommended features
22
+user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // remove stories from new tab page
23
+
24
+/* Behaviour */
25
+user_pref("browser.bookmarks.openInTabClosesMenu", false); // opening bookmarks doesn't close menu
26
+user_pref("browser.tabs.loadBookmarksInBackground", true); // allow opening bookmarks in background
27
+user_pref("layout.word_select.eat_space_to_next_word", false); // don't select extra space after words
28
+user_pref("general.autoScroll", true); // scroll on middle click
29
+user_pref("browser.tabs.searchclipboardfor.middleclick", false);
30
+user_pref("browser.ctrlTab.sortByRecentlyUsed", false); // ctrl+tab cycles in order
31
+user_pref("zoom.minPercent", 10); // adjust minimum zoom value
32
+user_pref("toolkit.zoomManager.zoomValues", ".1,.3,.5,.6,.7,.8,.85,.9,.95,1,1.05,1.1,1.15,1.2,1.3,1.4,1.45,1.5,1.55,1.6,1.7,1.8,1.9,2,2.5,3,4,5,10"); // adjust zoom increments (not mouse wheel)
33
+user_pref("ui.key.menuAccessKeyFocuses", false); // alt key doesn't open top bar
34
+user_pref("browser.urlbar.suggest.topsites", false); // don't suggest top sites
35
+user_pref("browser.urlbar.suggest.calculator", true); // enable calculations in url bar
36
+user_pref("browser.urlbar.unitConversion.enabled", true); // enable unit conversions in url bar
37
+user_pref("browser.urlbar.quickactions.enabled", false); // disable quick actions
38
+user_pref("browser.urlbar.autoFill.adaptiveHistory.enabled", true); // enable adaptive history
39
+user_pref("browser.urlbar.shortcuts.quickactions", false); // disable quick actions
40
+user_pref("browser.urlbar.resultMenu.keyboardAccessible", false); // skip url suggestion menus
41
+user_pref("findbar.highlightAll", true); // highlight all found matches
42
+user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", false); // hide picture-in-picture button
43
+user_pref("media.videocontrols.picture-in-picture.video-toggle.min-video-secs", 10); // allow picture-in-picture for shorter videos
44
+
45
+/* Dev tools */
46
+user_pref("devtools.command-button-screenshot.enabled", true); // enable screenshot button
47
+user_pref("devtools.command-button-rulers.enabled", true); // enable ruler button
48
+user_pref("devtools.debugger.remote-enabled", true); // enable remote debugging
49
+user_pref("devtools.chrome.enabled", true); // enable debugging browser chrome
50
+user_pref("devtools.screenshot.audio.enabled", false); // disable screenshot audio
51
+user_pref("devtools.editor.tabsize", 4); // indent size is 4 spaces
52
+user_pref("devtools.editor.expandtab", false); // indent with tabs
53
+
54
+/* Content */
55
+user_pref("media.eme.enabled", true); // allow DRM
56
+user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); // enable user styles
57
+user_pref("layout.css.grid-template-masonry-value.enabled", true);
58
+user_pref("dom.enable_web_task_scheduling", true);
59
+user_pref("browser.urlbar.groupLabels.enabled", false); // hide firefox suggest label
60
+user_pref("browser.compactmode.show", true); // add compact mode
61
+user_pref("browser.tabs.tabmanager.enabled", false); // hide tab manager until needed
62
+user_pref("privacy.userContext.enabled", true); // enable containers
63
+user_pref("privacy.userContext.ui.enabled", true); // enable containers
64
+
65
+/* Downloads */
66
+user_pref("browser.download.start_downloads_in_tmp_dir", true); // start downloads early
67
+user_pref("browser.download.useDownloadDir", false); // always ask where to save files
68
+user_pref("browser.download.alwaysOpenPanel", false); // disable automatically opening download panel
69
+user_pref("browser.download.autohideButton", true); // hide empty downloads button
70
+user_pref("browser.download.manager.addToRecentDocs", false); // disable adding downloads to recent documents
71
+
72
+/* PDFs */
73
+user_pref("browser.download.open_pdf_attachments_inline", true); // force PDFs to open in browser
74
+user_pref("pdfjs.disabled", false); // enable pdfjs
75
+user_pref("pdfjs.enableScripting", false); // disable scripts on pdfjs
76
+
77
+/* Forms */
78
+user_pref("signon.autofillForms", false); // don't autofill login pages
79
+user_pref("browser.formfill.enable", false); // don't autofill forms
80
+user_pref("signon.formlessCapture.enabled", false); // don't autofill passwords
81
+user_pref("extensions.formautofill.addresses.enabled", false); // don't autofill addresses
82
+user_pref("extensions.formautofill.creditCards.enabled", false); // don't autofill credit cards
83
+user_pref("signon.rememberSignons", false); // don't remember passwords
84
+
85
+/* Warnings */
86
+user_pref("browser.aboutConfig.showWarning", false); // disable about:config warning
87
+user_pref("browser.warnOnQuitShortcut", true); // warn on quit
88
+user_pref("browser.tabs.warnOnClose", true); // warn on quit
89
+user_pref("app.update.suppressPrompts", true); // disable update warning
90
+user_pref("browser.urlbar.update2.engineAliasRefresh", true); // allow adding search engines manually
91
+
92
+/* Fullscreen */
93
+user_pref("full-screen-api.transition-duration.enter", "0 0");
94
+user_pref("full-screen-api.transition-duration.leave", "0 0");
95
+user_pref("full-screen-api.transition.timeout", 0);
96
+user_pref("full-screen-api.warning.delay", -1);
97
+user_pref("full-screen-api.warning.timeout", 0);
98
+
99
+/* Scrolling */
100
+user_pref("apz.overscroll.enabled", true);
101
+user_pref("general.smoothScroll", true);
102
+user_pref("general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS", 12);
103
+user_pref("general.smoothScroll.msdPhysics.enabled", true);
104
+user_pref("general.smoothScroll.msdPhysics.motionBeginSpringConstant", 600);
105
+user_pref("general.smoothScroll.msdPhysics.regularSpringConstant", 650);
106
+user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaMS", 25);
107
+user_pref("general.smoothScroll.msdPhysics.slowdownMinDeltaRatio", "2.0");
108
+user_pref("general.smoothScroll.msdPhysics.slowdownSpringConstant", 250);
109
+user_pref("general.smoothScroll.currentVelocityWeighting", "1.0");
110
+user_pref("general.smoothScroll.stopDecelerationWeighting", "1.0");
111
+
112
+/* Bloat */
113
+user_pref("browser.startup.homepage_override.mstone", "ignore"); // disable welcome messages
114
+user_pref("extensions.getAddons.showPane", false); // disable recommendations in about:addons
115
+user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); // disable recommendations in about:addons
116
+user_pref("browser.discovery.enabled", false); // disable recommendations in about:addons
117
+user_pref("browser.messaging-system.whatsNewPanel.enabled", false); // disable what's new
118
+user_pref("extensions.pocket.enabled", false); // disable pocket
119
+user_pref("browser.uitour.enabled", false); // disable ui tour
120
+user_pref("browser.uitour.url", ""); // disable ui tour
121
+user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false); // removed sponsored suggestions
122
+user_pref("browser.preferences.moreFromMozilla", false); // remove more from mozilla
123
+user_pref("browser.shopping.experience2023.enabled", false);
124
+user_pref("browser.urlbar.pocket.featureGate", false);
125
+user_pref("browser.urlbar.trending.featureGate", false);
126
+user_pref("browser.privatebrowsing.vpnpromourl", ""); // hide private browsing promo
127
+
128
+/* Telemetry */
129
+user_pref("datareporting.policy.dataSubmissionEnabled", false);
130
+user_pref("datareporting.healthreport.uploadEnabled", false);
131
+user_pref("toolkit.telemetry.unified", false);
132
+user_pref("toolkit.telemetry.enabled", false);
133
+user_pref("toolkit.telemetry.server", "data:,");
134
+user_pref("toolkit.telemetry.archive.enabled", false);
135
+user_pref("toolkit.telemetry.newProfilePing.enabled", false);
136
+user_pref("toolkit.telemetry.shutdownPingSender.enabled", false);
137
+user_pref("toolkit.telemetry.updatePing.enabled", false);
138
+user_pref("toolkit.telemetry.bhrPing.enabled", false);
139
+user_pref("toolkit.telemetry.firstShutdownPing.enabled", false);
140
+user_pref("toolkit.telemetry.coverage.opt-out", true);
141
+user_pref("toolkit.coverage.opt-out", true);
142
+user_pref("toolkit.coverage.endpoint.base", "");
143
+user_pref("browser.ping-centre.telemetry", false);
144
+user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
145
+user_pref("browser.newtabpage.activity-stream.telemetry", false);
146
+user_pref("app.shield.optoutstudies.enabled", false);
147
+user_pref("app.normandy.enabled", false);
148
+user_pref("app.normandy.api_url", "");
149
+user_pref("breakpad.reportURL", "");
150
+user_pref("browser.tabs.crashReporting.sendReport", false);
151
+user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
152
+user_pref("browser.contentanalysis.enabled", false);
153
+user_pref("browser.contentanalysis.default_result", 0);
154
+
155
+/* Sanitize */
156
+// user_pref("privacy.sanitize.sanitizeOnShutdown", false); // clear data on shutdown
157
+// user_pref("privacy.clearOnShutdown.cache", false); // save cache
158
+// user_pref("privacy.clearOnShutdown.cookies", false); // save cookies
159
+// user_pref("privacy.clearOnShutdown.downloads", true); // clear downloads (requires clearing history)
160
+// user_pref("privacy.clearOnShutdown.formdata", false); // save form data
161
+// user_pref("privacy.clearOnShutdown.history", false); // save history
162
+// user_pref("privacy.clearOnShutdown.offlineApps", false); // save cache
163
+// user_pref("privacy.clearOnShutdown.openWindows", false); // save open windows
164
+// user_pref("privacy.clearOnShutdown.sessions", false); // save sessions
165
+// user_pref("privacy.clearOnShutdown.siteSettings", false); // save site settings

正在加载...
取消
保存