1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
// settings to make firefox a little more comfy for me
// many tips taken from https://www.reddit.com/r/firefox/comments/17hlkhp/what_are_your_must_have_changes_in_aboutconfig/
/* misc stuff */
//user_pref("browser.fixup.dns_first_for_single_words", true);
//user_pref("browser.reader.detectedFirstArticle", true);
//user_pref("browser.search.suggest.enabled", false);
//user_pref("browser.search.update", false);
//user_pref("browser.sessionstore.restore_on_demand", false);
//user_pref("browser.sessionstore.resume_from_crash", false);
//user_pref("browser.tabs.animate", false);
//
//user_pref("browser.tabs.warnOnClose", false);
//user_pref("browser.warnOnQuit", false);
//user_pref("browser.warnOnQuitShortcut", false);
//
//user_pref("datareporting.healthreport.service.enabled", false);
//user_pref("datareporting.healthreport.uploadEnabled", false);
//user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
//user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1450604664862");
//user_pref("datareporting.policy.firstRunTime", "1450604654097");
//
//user_pref("experiments.enabled", false);
//user_pref("experiments.supported", false);
//user_pref("general.smoothScroll", false);
//user_pref("identity.fxaccounts.enabled", false);
//user_pref("keyword.enabled", false);
//user_pref("layout.spellcheckDefault", 0);
//user_pref("media.videocontrols.picture-in-picture.video-toggle.enabled", false);
//user_pref("mousewheel.system_scroll_override.enabled", false);
//user_pref("network.allow-experiments", false);
//user_pref("network.captive-portal-service.enabled", false);
//user_pref("pdfjs.disabled", true);
//user_pref("security.webauth.u2f", true);
//user_pref("signon.rememberSignons", false);
/* backspace to go back */
user_pref("browser.backspace_action", 0);
//
//
// keep data on the device
// disable safe browsing
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
user_pref("browser.safebrowsing.enabled", false);
user_pref("browser.safebrowsing.malware.enabled", false);
user_pref("browser.safebrowsing.phishing.enabled", false);
//
//
// better ui
// big square scrollbar in lieu of native them
user_pref("widget.non-native-theme.scrollbar.style", 4);
// make it wider
user_pref("widget.non-native-theme.scrollbar.size.orverride", 24);
// never try and hide it
user_pref("widget.gtk.overlay-scrollbars.enabled", false);
// make the buttons smaller
user_pref("browser.uidensity", 1);
// make websites use the colours i choose
user_pref("browser.display.document_color_use", 2);
user_pref("browser.display.use_system_colors", true);
user_pref("browser.display.background_color", "#ffffe8");
// don't let websites set their own fonts
user_pref("browser.display.use_document_fonts", 0);
// always enable cursor key navigation
user_pref("accessibility.browsewithcaret", true);
//
//
// disable pocket
user_pref("extensions.pocket.enabled", false);
user_pref("extensions.pocket.showHome", false);
user_pref("browser.newtabpage.activity-stream.section.highlights.includePocket", false);
user_pref("browser.newtabpage.activity-stream.discoverystream.sendToPocket.enabled", false);
user_pref("browser.newtabpage.activity-stream.discoverystream.saveToPocketCard.enabled", false);
//
//
// clean new tab page
user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
user_pref("browser.newtabpage.activity-stream.feeds.section.topsites", false);
user_pref("browser.newtabpage.activity-stream.showSearch", false);
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
user_pref("browser.newtabpage.enabled", false);
//
//
// boring url bar
// don't grey out parts of the url
user_pref("browser.urlbar.formatting.enabled", false);
// always show the protocol
user_pref("browser.urlbar.trimURLs", false);
// disable suggestions
user_pref("browser.urlbar.maxRichResults", -1);
// don't "pop out" the url bar
user_pref("browser.urlbar.openViewOnFocus", false);
/* disable telemetry */
user_pref("app.shield.optoutstudies.enabled", false);
/* enable userchrome again */
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);
// always prompt me for download location
user_pref("browser.download.useDownloadDir", false);
// window-oriented behaviour. each window has one tab
user_pref("browser.tabs.closeWindowWithLastTab", false); // close tab, close browser
user_pref("browser.tabs.opentabfor.middleclick", false); // middle click opens in new window
user_pref("middlemouse.openNewWindow", true); // for some reason this is two settings
/* open links in the current tab (1), even if the website says otherwise (0) */
user_pref("browser.link.open_newwindow", 1);
user_pref("browser.link.open_newwindow.restriction", 0);
/* disable new firefox view tab */
user_pref("browser.tabs.firefox-view", false);
/* disable bookmarks toolbar */
user_pref("browser.toolbars.bookmarks.visibility", "never");
/* use text in the toolbar, not icons */
/*user_pref("browser.chrome.toolbar_style", 1);*/
/* don't pop up menu on alt */
user_pref("ui.key.menuAccessKeyFocuses", false);
// default to empty headers when printing
user_pref("print.print_footerleft", "");
user_pref("print.print_footerright", "");
user_pref("print.print_headerleft", "");
user_pref("print.print_headerright", "");
// speed related things
user_pref("nglayout.initialpaint.delay", 0);
// view source
user_pref("view_source.editor.external", false);
user_pref("view_source.editor.path", "emacs");
user_pref("view_source.syntax_highlight", false);
user_pref("view_source.tab", false);
user_pref("view_source.tab_size", 8);
user_pref("view_source.wrap_long_lines", false);
// reader view
user_pref("reader.parse-on-load.enabled", false);
// don't show a disclaimer
user_pref("browser.aboutConfig.showWarning", false);
// disable https only.
user_pref("dom.security.https_only_mode_ever_enabled", false);
user_pref("dom.security.https_only_mode", false);
//
//
// dont save browsing session to disk so often
user_pref("browser.cache.disk.enable", false);
user_pref("browser.cache.memory.enable", true);
// Lower cache size as we are now storing it in memory not on disk
user_pref("media.cache_size", 102400);
user_pref("media.memory_caches_combined_limit_kb", 102400);
user_pref("image.mem.surfacecache.max_size_kb", 102400);
// Only save the session once per day
user_pref("browser.sessionstore.interval", 86400000);
// Don't store recently parsed recent pages in memory
user_pref("browser.sessionhistory.max_total_viewers", 0);
//
//
// Increase the defaults for a bunch of settings related to http requests
user_pref("network.buffer.cache.size", 524288);
user_pref("network.buffer.cache.count", 128);
user_pref("network.http.max-connections", 1800);
user_pref("network.http.max-persistent-connections-per-server", 12);
user_pref("network.http.max-urgent-start-excessive-connections-per-host", 10); user_pref("network.http.pacing.requests.burst", 32);
user_pref("network.http.pacing.requests.min-parallelism", 10);
user_pref("network.websocket.max-connections", 400);
user_pref("network.ssl_tokens_cache_capacity", 32768);
// also see "security.pki.crlite_mode" and "browser.cache.memory.capacity"
|