feat: firefox

This commit is contained in:
eneller
2024-05-18 10:56:15 +02:00
parent fbca5a12b3
commit d182bb1c58
2 changed files with 66 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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);