Skip to content

Instantly share code, notes, and snippets.

@HorlogeSkynet
Last active February 5, 2024 09:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HorlogeSkynet/eda281b2b4ff6bb6674d77d4e823431a to your computer and use it in GitHub Desktop.
Save HorlogeSkynet/eda281b2b4ff6bb6674d77d4e823431a to your computer and use it in GitHub Desktop.
HorlogeSkynet's (Arkenfox) User.JS override scripts, for Firefox & Thunderbird
/*
>> HorlogeSkynet's Arkenfox User.JS override preferences <<
Version: v0.10.4
Upstream version: 122.0
Installation : Follow <https://github.com/arkenfox/user.js/wiki/3.2-Applying-Your-Changes#small_orange_diamond-the-solution>.
Note : This is an OVERRIDE script for <https://github.com/arkenfox/user.js>, DO NOT USE IT ALONE.
*/
// Re-enables 'about:home' page for startup landing page and new tabs.
/* 0102 */ user_pref("browser.startup.page", 1);
/* 0103 */ user_pref("browser.startup.homepage", "about:home");
/* 0104 */ user_pref("browser.newtabpage.enabled", true);
// Don't throw away sessions on Firefox shutdown.
/* 2811 */ user_pref("privacy.clearOnShutdown.sessions", false);
user_pref("privacy.clearOnShutdown.cookies", false);
// Re-enables WebGL.
/* 4520 */ user_pref("webgl.disabled", false);
/* Personal tweaks unrelated to Arkenfox User.JS */
// Disable downloads button auto-hiding.
user_pref("browser.download.autohideButton", false);
// Enables navigation bar search widget.
user_pref("browser.search.widget.inNavBar", true);
// Disables CTRL + Q quit shortcut.
user_pref("browser.quitShortcut.disabled", true);
// Disables cycling through tabs in recently used order when CTRL+TAB.
user_pref("browser.ctrlTab.recentlyUsedOrder", false);
// Enables tabs switching, by scrolling with mouse wheel on tabs bar.
user_pref("toolkit.tabbox.switchByScrolling", true);
// Enables warning when closing multiple tabs window.
user_pref("browser.tabs.warnOnClose", true);
// Enables spell-check by default for **all** inputs.
user_pref("layout.spellcheckDefault", 2);
// Enables `prefers-color-scheme` CSS media feature.
user_pref("ui.systemUsesDarkTheme", 1);
// Disables Pocket extension.
user_pref("extensions.pocket.enabled", false);
// Sets Quad9's DoH resolver as TRR.
// From <https://quad9.net/doh-quad9-dns-servers/#UsingDoHwithQuad9DNSServers-Firefox>
// ... and <https://wiki.mozilla.org/Trusted_Recursive_Resolver>.
user_pref("network.trr.mode", 2);
user_pref("network.trr.custom_uri", "Quad9");
user_pref("network.trr.uri", "https://dns.quad9.net:5053/dns-query");
user_pref("network.trr.bootstrapAddress", "9.9.9.9");
/*
>> HorlogeSkynet's Thunderbird User.JS override preferences <<
Version: v0.9.1
Upstream version: v115.0
Installation : Follow <https://github.com/HorlogeSkynet/thunderbird-user.js/wiki/1.3-Implementation>.
Notes :
* This is an OVERRIDE script for <https://github.com/HorlogeSkynet/thunderbird-user.js>, DO NOT USE IT ALONE.
* Full disclosure 2019-11-24 : I'm now the maintainer of the above template too.
*/
// Automatically sets the spell checker to French.
/* 0210b */ user_pref("spellchecker.dictionary", "fr-FR");
// Don't disable timezone conversion.
/* 6023 */ user_pref("mailnews.display.original_date", true);
// Disable return receipt sending unconditionally.
/* 9090 */ user_pref("mail.mdn.report.enabled", false);
// Set calendar timezone.
/* 9312 */ user_pref("calendar.timezone.local", "Europe/Paris");
/* Personal tweaks unrelated to Thunderbird-User.JS */
// Enables tabs switching, by scrolling with mouse wheel on tabs bar.
user_pref("toolkit.tabbox.switchByScrolling", true);
// Replaces spaces by underscores in file name when saving email to disk.
user_pref("mail.save_msg_filename_underscores_for_space", true);
// Automatically marks messages as read after displaying them for 2 seconds.
user_pref("mailnews.mark_message_read.delay", true);
user_pref("mailnews.mark_message_read.delay.interval", 2);
// Sets Quad9's DoH resolver as TRR.
// From <https://quad9.net/doh-quad9-dns-servers/#UsingDoHwithQuad9DNSServers-Firefox>.
// ... and <https://wiki.mozilla.org/Trusted_Recursive_Resolver>.
user_pref("network.trr.mode", 2);
user_pref("network.trr.custom_uri", "Quad9");
user_pref("network.trr.uri", "https://dns.quad9.net:5053/dns-query");
user_pref("network.trr.bootstrapAddress", "9.9.9.9");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment