From d182bb1c58d9442a0c056968911faad03a7c5ac9 Mon Sep 17 00:00:00 2001 From: eneller Date: Sat, 18 May 2024 10:56:15 +0200 Subject: [PATCH] feat: firefox --- .../chrome/userChrome.css | 31 ++++++++++++++++ .../firefox/5cnj4ejz.default-release/user.js | 35 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .mozilla/firefox/5cnj4ejz.default-release/chrome/userChrome.css create mode 100644 .mozilla/firefox/5cnj4ejz.default-release/user.js diff --git a/.mozilla/firefox/5cnj4ejz.default-release/chrome/userChrome.css b/.mozilla/firefox/5cnj4ejz.default-release/chrome/userChrome.css new file mode 100644 index 0000000..2754c2a --- /dev/null +++ b/.mozilla/firefox/5cnj4ejz.default-release/chrome/userChrome.css @@ -0,0 +1,31 @@ +/*The following block hides the horizontal tabs for tree style tabs https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#for-userchromecss + * enable 'toolkit.legacyUserProfileCustomizations.stylesheets' in 'about:config' for this to work*/ + +#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { + opacity: 0; + pointer-events: none; +} +#main-window:not([tabsintitlebar="true"]) #TabsToolbar { + visibility: collapse !important; +} + +/*remove top white line +#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar .titlebar-spacer { + border-inline-end: none; +}*/ +/*Hide the Tree style Tab header*/ +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { + display: none; +} + + /*The following moves the window buttons to the lower bar after removeing horizontal tabs + Adding empty space for buttons */ +/*#nav-bar { + margin-right:140px; +}*/ + +/* Fix for main menu calling by Alt button */ +/*#titlebar{display: none}*/ +#titlebar > #toolbar-menubar { + margin-top: 10px; +} diff --git a/.mozilla/firefox/5cnj4ejz.default-release/user.js b/.mozilla/firefox/5cnj4ejz.default-release/user.js new file mode 100644 index 0000000..391b153 --- /dev/null +++ b/.mozilla/firefox/5cnj4ejz.default-release/user.js @@ -0,0 +1,35 @@ +// firefox user.js configuration inspired by https://github.com/pyllyukko/user.js/ , https://github.com/arkenfox/user.js/ +// PREF: cycle tabs by recently used +user_pref("browser.ctrlTab.sortByRecentlyUsed", true); +// PREF: Display a notification bar when websites offer data for offline use +// http://kb.mozillazine.org/Browser.offline-apps.notify +user_pref("browser.offline-apps.notify", true); +// PREF: Do not check if Firefox is the default browser +user_pref("browser.shell.checkDefaultBrowser", false); +// PREF: Disable the "new tab page" feature and show a blank tab instead +// https://wiki.mozilla.org/Privacy/Reviews/New_Tab +// https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites#w_how-do-i-turn-the-new-tab-page-off +user_pref("browser.newtabpage.enabled", false); +user_pref("browser.newtab.url", "web.neller.org/dashboard"); +// PREF: DNS over HTTPS +user_pref("network.trr.mode", 2); +user_pref("network.trr.uri", "https://mozilla.cloudflare-dns.com/dns-query"); +// PREF: disable Ctrl + Q shortcut to close all tabs +user_pref("browser.quitShortcut.disabled", true); +// PREF: dont hide address bar and toolbars in fullscreen mode +user.pref("browser.fullscreen.autohide", false); +// PREF: dont save login information +user_pref("signon.rememberSignons", false); +// PREF: enable userChrome.css for visual adjustments +user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +// PREF: dont show sponsored suggestions +user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); +user_pref("browser.urlbar.suggest.topsites", false) +user_pref("browser.urlbar.groupLabels.enabled", false); +user_pref("browser.newtabpage.activity-stream.improvesearch.topSiteSearchShortcuts", false ); +user_pref("browser.partnerlink.campaign.topsites",""); +// PREF: dont open suggestions at all when entering URL Bar +user_pref("browser.urlbar.suggest.topsites", false); +// PREF: disable firefox pocket +user_pref("extensions.pocket.enabled", false); +user_pref("browser.tabs.inTitlebar", true);