From 06f66f4b612a7b6f39003580a37694294b78115f Mon Sep 17 00:00:00 2001 From: Sankalp Tharu Date: Thu, 25 May 2023 01:14:50 +0545 Subject: [PATCH] fresh init --- home/.Xresources | 5 + home/.mozilla/firefox/chrome/add.svg | 3 + home/.mozilla/firefox/chrome/left-arrow.svg | 1 + home/.mozilla/firefox/chrome/right-arrow.svg | 1 + home/.mozilla/firefox/chrome/userChrome.css | 281 +++++++++++++++++++ home/.mozilla/firefox/chrome/userContent.css | 9 + home/.mozilla/firefox/user.js | 108 +++++++ 7 files changed, 408 insertions(+) create mode 100644 home/.Xresources create mode 100644 home/.mozilla/firefox/chrome/add.svg create mode 100644 home/.mozilla/firefox/chrome/left-arrow.svg create mode 100644 home/.mozilla/firefox/chrome/right-arrow.svg create mode 100644 home/.mozilla/firefox/chrome/userChrome.css create mode 100644 home/.mozilla/firefox/chrome/userContent.css create mode 100644 home/.mozilla/firefox/user.js diff --git a/home/.Xresources b/home/.Xresources new file mode 100644 index 0000000..15e3c24 --- /dev/null +++ b/home/.Xresources @@ -0,0 +1,5 @@ + + +#include ".Xresources.d/colors" +#include ".Xresources.d/fonts" +#include ".Xresources.d/rxvt-unicode" diff --git a/home/.mozilla/firefox/chrome/add.svg b/home/.mozilla/firefox/chrome/add.svg new file mode 100644 index 0000000..fb99555 --- /dev/null +++ b/home/.mozilla/firefox/chrome/add.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/home/.mozilla/firefox/chrome/left-arrow.svg b/home/.mozilla/firefox/chrome/left-arrow.svg new file mode 100644 index 0000000..09199f0 --- /dev/null +++ b/home/.mozilla/firefox/chrome/left-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home/.mozilla/firefox/chrome/right-arrow.svg b/home/.mozilla/firefox/chrome/right-arrow.svg new file mode 100644 index 0000000..b068928 --- /dev/null +++ b/home/.mozilla/firefox/chrome/right-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/home/.mozilla/firefox/chrome/userChrome.css b/home/.mozilla/firefox/chrome/userChrome.css new file mode 100644 index 0000000..220f55c --- /dev/null +++ b/home/.mozilla/firefox/chrome/userChrome.css @@ -0,0 +1,281 @@ + :root { + + + + --bg: #14171c; + --icon-color: #b8bfe5; + --nav-toolbar-padding: 8px; + --sidebar-bg: var(--z0mbi3-bg); + --sidebar-color: #b8bfe5; + --tab-border-radius: 0px; + --tab-color: #f3edff; + --tab-font-family: "JetBrainsMono Nerd Font", serif; + --tab-font-size: 9.5pt; + --tab-font-weight: 600; + --tab-height: 42px; + --tab-pinned-bg: #70c1b3; + --tab-selected-bg: #4d4168; + --tab-soundplaying-bg: #ee6c4d; + --urlbar-color: #b8bfe5; + --urlbar-focused-color: #d7d9e5; + --urlbar-font-family: "JetBrainsMono Nerd Font", serif; + --urlbar-font-size: 10pt; + --urlbar-font-weight: 800; + --urlbar-results-color: #e0fbfc; + --urlbar-results-font-family: "JetBrainsMono Nerd Font", serif; + --urlbar-results-font-size: 9pt; + --urlbar-results-font-weight: 700; + --urlbar-results-url-color: #98c1d9; + + /* Overriden Firefox variables*/ + --toolbar-bgcolor: var(--bg) !important; + --lwt-sidebar-background-color: var(--bg) !important; + --tab-border-radius: 0 !important; + --lwt-toolbarbutton-icon-fill-attention: #8677cf !important; + --toolbarbutton-icon-fill-attention: var(--lwt-toolbarbutton-icon-fill-attention) !important; +} + +.toolbarbutton-icon { + fill: var(--z0mbi3-icon-color) !important; + fill-opacity: 100% !important; +} + +#PlacesToolbar menupopup[placespopup="true"] { + --arrowpanel-background: var(--bg) !important; + --arrowpanel-color: #b8bfe5 !important; +} + +.tab-background[selected="true"] { + background: var(--tab-selected-bg) !important; +} + +/*.tab-background[selected"false"] { + background: var(--tab-selected-bg) !important; + opacity: 50% !important; +}*/ + +/* Move tabs down */ +#titlebar { + -moz-box-ordinal-group: 3 !important; +} + +/* tabs */ +.tab-text { + font-family: var(--tab-font-family); + font-weight: var(--tab-font-weight); + font-size: var(--tab-font-size) !important; + color: var(--tab-color); + padding: 10px !important; +} + +/* Make all tabs small except selected one */ +.tabbrowser-tab[fadein]:not([selected]):not([pinned]) { + max-width: 150px !important; + min-width: 150px !important; +} + +/* Make selected tabs to bigger */ +.tabbrowser-tab[selected][fadein]:not([pinned]) { + max-width: 200px !important; + min-width: 200px !important; +} + +hbox.tab-content .tab-icon-image { + display: none !important; +} + +.tabbrowser-tab { + border-radius: var(--tab-border-radius) !important; + height: var(--tab-height) !important; + margin-bottom: 6px !important; + margin-top: 4px !important; + max-height: 80% !important; + min-height: 80% !important; +} + +#tabs-newtab-button > .toolbarbutton-icon { + --toolbarbutton-inner-padding: 4px !important; +} + +/* No sound icon and text in tabs */ +.tab-close-button[pinned], +#tabbrowser-tabs[closebuttons="activetab"] > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-content > .tab-close-button:not([selected="true"]), +.tab-icon-pending:not([pendingicon]), +.tab-icon-pending[busy], +.tab-icon-pending[pinned], +.tab-icon-image:not([src]):not([pinned]):not([crashed])[selected], +.tab-icon-image:not([src]):not([pinned]):not([crashed]):not([sharing]), +.tab-icon-image[busy], +.tab-throbber:not([busy]), +.tab-icon-sound:not([soundplaying]):not([muted]):not([activemedia-blocked]):not([pictureinpicture]), +.tab-icon-sound[pinned], +.tab-sharing-icon-overlay, +.tab-icon-overlay { + display: none; +} +.tab-secondary-label[soundplaying="true"]:not([pictureinpicture]){ display: none } + +/**************************************************/ + +#urlbar { + max-width: 70% !important; + margin: 0 15% !important; + /* position: unset!important; */; +} + +#urlbar-results { + font-family: var(--urlbar-results-font-family); + font-weight: var(--urlbar-results-font-weight); + font-size: var(--urlbar-results-font-size) !important; + color: var(--urlbar-results-color) !important; +} + +#urlbar:not([focused]) > #urlbar-background { + border: none !important; + box-shadow: none !important; + outline: none !important; +} + +.urlbarView-url, .search-panel-one-offs-container { + color: var(--urlbar-results-url-color) !important; + font-family: var(--urlbar-font-family); + font-weight: var(--urlbar-results-font-weight); + font-size: var(--urlbar-font-size) !important; +} + +.urlbarView-favicon, .urlbarView-type-icon { + display: none !important; +} + +#urlbar-input { + font-size: var(--urlbar-font-size) !important; + color: var(--urlbar-color) !important; + font-family: var(--urlbar-font-family) !important; + font-weight: var(--urlbar-font-weight)!important; + text-align: center !important; +} + +#urlbar-input:focus { + color: var(--urlbar-focused-color) !important; +} + +/* Download button */ + + +/* Hide tracking protection button */ +tracking-protection-icon-container, #identity-box { + display: none; +} + +#tracking-protection-icon-box { + display: none; +} + +#unified-extensions-button { + display: none; +} + +/* Hide show all tabs button */ +#alltabs-button { + display: none !important; +} + +/* Hide star button (bookmark) */ +#star-button{ + display:none; +} + +@-moz-document url("about:home"), +url("about:newtab"),url("about:blank") { + +.personalize-button { + +display: none !important;}} + +/* Hide reading View */ +#reader-mode-button,#readinglist-addremove-button { + display:none !important; +} + +/* Remove Back button when there's nothing to go Back to */ +#nav-bar:not([customizing="true"])>#nav-bar-customization-target>#back-button[disabled="true"] { + opacity: 0 !important; +} + +/* Remove Forward button when there's nothing to go Forward to */ +#nav-bar:not([customizing="true"])>#nav-bar-customization-target>#forward-button[disabled="true"] { + opacity: 0 !important; +} + +/* Remove reload button when there's nothing to reload */ +#nav-bar:not([customizing="true"])>#nav-bar-customization-target>#reload-button[disabled="true"] { + opacity: 0 !important; +} + +/* Remove close button*/ +.titlebar-buttonbox-container{ +display:none +} + +#navigator-toolbox { +border-bottom: unset !important; +} + +#back-button { + list-style-image: url("left-arrow.svg") !important; +} + +#tabs-newtab-button { + list-style-image: url("add.svg") !important; +} + +.close-icon, .urlbar-icon { + fill: var(--z0mbi3-icon-color) !important; +} + +#forward-button { + list-style-image: url("right-arrow.svg") !important; +} + +#urlbar-background { + background-color: var(--bg) !important; + border: none !important; + outline: none !important; + opacity: .95 !important; +} + +.toolbar-items { + background-color: var(--bg) !important; +} + +#reload-button:not([disabled="true"]), +#home-button:not([disabled="true"]) { + color: var(--icon-color) !important; +} + +.toolbarbutton-text { + color: var(--icon-color) !important; +} + +toolbar#nav-bar { + padding: var(--nav-toolbar-padding) !important; +} + +toolbarbutton.bookmark-item:hover, +#PlacesToolbar menu:hover, +#PlacesToolbar menuitem:hover { + background-color: var(--tab-selected-bg) !important; +} + +/************************************/ + +/*Darken panels to match theme*/ +.panel-subview-body,#appMenu-zoomReset-button,.panel-mainview,.panel-subviews { + color: #c5cddb !important; + background: var(--url-and-searchbar-background-color) !important;} +.panel-subview-footer,[class^="PanelUI-"] { + color: #c5cddb !important; + background: var(--toolbar-bgcolor) !important;} +/*stops possible clashes with extension popups*/ +.webextension-popup-browser { + background: #fff;} diff --git a/home/.mozilla/firefox/chrome/userContent.css b/home/.mozilla/firefox/chrome/userContent.css new file mode 100644 index 0000000..41943c0 --- /dev/null +++ b/home/.mozilla/firefox/chrome/userContent.css @@ -0,0 +1,9 @@ + + +@import url("userChrome.css"); +/* Removes white loading page */ +@-moz-document url(about:blank), url(about:newtab), url(about:home) { + html:not(#ublock0-epicker), html:not(#ublock0-epicker) body, #newtab-customize-overlay { + background: var(--bg) !important; + } + } diff --git a/home/.mozilla/firefox/user.js b/home/.mozilla/firefox/user.js new file mode 100644 index 0000000..df63e06 --- /dev/null +++ b/home/.mozilla/firefox/user.js @@ -0,0 +1,108 @@ + + +user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +user_pref("browser.cache.disk.enable", false); +user_pref("browser.cache.memory.enable", true); +user_pref("browser.cache.memory.capacity", 524288); +user_pref("browser.sessionstore.interval", 15000000); +user_pref("extensions.pocket.enabled", false); +user_pref("reader.parse-on-load.enabled", false); +user_pref("accessibility.force_disabled", 1); +user_pref("browser.helperApps.deleteTempFileOnExit", true); +user_pref("browser.uitour.enabled", false); + +/*** STARTUP ***/ + +/* set startup page + * 0=blank, 1=home, 2=last visited page, 3=resume previous session*/ +user_pref("browser.startup.page", 0); +/* set HOME+NEWWINDOW page + * about:home=Firefox Home, custom URL, about:blank*/ +user_pref("browser.startup.homepage", "about:blank"); +/* disable sponsored content on Firefox Home (Activity Stream) + * [SETTING] Home>Firefox Home Content ***/ +user_pref("browser.newtabpage.activity-stream.showSponsored", false); // [FF58+] Pocket > Sponsored Stories +user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // [FF83+] Sponsored shortcuts +/* clear default topsites + * [NOTE] This does not block you from adding your own ***/ +user_pref("browser.newtabpage.activity-stream.default.sites", ""); + +/*** QUIETER FOX ***/ + +/* disable recommendation pane in about:addons (uses Google Analytics) ***/ +user_pref("extensions.getAddons.showPane", false); // [HIDDEN PREF] +/* recommendations in about:addons' Extensions and Themes panes [FF68+] ***/ +user_pref("extensions.htmlaboutaddons.recommendations.enabled", false); +/* personalized Extension Recommendations in about:addons and AMO [FF65+] + * https://support.mozilla.org/kb/personalized-extension-recommendations ***/ +user_pref("browser.discovery.enabled", false); + +/** TELEMETRY ***/ + +/* disable new data submission */ +user_pref("datareporting.policy.dataSubmissionEnabled", false); +/* disable Health Reports */ +user_pref("datareporting.healthreport.uploadEnabled", false); +/* 0332: disable telemetry */ +user_pref("toolkit.telemetry.unified", false); +user_pref("toolkit.telemetry.enabled", false); +user_pref("toolkit.telemetry.server", "data:,"); +user_pref("toolkit.telemetry.archive.enabled", false); +user_pref("toolkit.telemetry.newProfilePing.enabled", false); +user_pref("toolkit.telemetry.shutdownPingSender.enabled", false); +user_pref("toolkit.telemetry.updatePing.enabled", false); +user_pref("toolkit.telemetry.bhrPing.enabled", false); +user_pref("toolkit.telemetry.firstShutdownPing.enabled", false); +/* disable Telemetry Coverage */ +user_pref("toolkit.telemetry.coverage.opt-out", true); // [HIDDEN PREF] +user_pref("toolkit.coverage.opt-out", true); // [FF64+] [HIDDEN PREF] +user_pref("toolkit.coverage.endpoint.base", ""); +/* disable PingCentre telemetry (used in several System Add-ons) [FF57+] */ +user_pref("browser.ping-centre.telemetry", false); +/* disable Firefox Home (Activity Stream) telemetry ***/ +user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false); +user_pref("browser.newtabpage.activity-stream.telemetry", false); +user_pref("toolkit.telemetry.reportingpolicy.firstRun", false); +user_pref("toolkit.telemetry.shutdownPingSender.enabledFirstsession", false); + +/** STUDIES ***/ + +/* disable Studies ***/ +user_pref("app.shield.optoutstudies.enabled", false); +/* disable Normandy/Shield [FF60+] + * Shield is a telemetry system that can push and test "recipes" ***/ +user_pref("app.normandy.enabled", false); +user_pref("app.normandy.api_url", ""); + +/** CRASH REPORTS ***/ + +/* disable Crash Reports ***/ +user_pref("breakpad.reportURL", ""); +user_pref("browser.tabs.crashReporting.sendReport", false); +/* enforce no submission of backlogged Crash Reports [FF58+] + * [SETTING] Privacy & Security>Firefox Data Collection & Use>Allow Firefox to send backlogged crash reports ***/ +user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); + +/** OTHER ***/ + +/* 0360: disable Captive Portal detection + * [1] https://www.eff.org/deeplinks/2017/08/how-captive-portals-interfere-wireless-security-and-privacy ***/ +user_pref("captivedetect.canonicalURL", ""); +user_pref("network.captive-portal-service.enabled", false); +/* disable Network Connectivity checks + * [1] https://bugzilla.mozilla.org/1460537 ***/ +user_pref("network.connectivity-service.enabled", false); + +/*** [GEOLOCATION / LANGUAGE / LOCALE ***/ + +/* use Mozilla geolocation service instead of Google.*/ +user_pref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); +/* disable using the OS's geolocation service ***/ +user_pref("geo.provider.ms-windows-location", false); // [WINDOWS] +user_pref("geo.provider.use_corelocation", false); // [MAC] +user_pref("geo.provider.use_gpsd", false); // [LINUX] +user_pref("geo.provider.use_geoclue", false); // [FF102+] [LINUX] + + +// Integrated calculator at urlbar +user_pref("browser.urlbar.suggest.calculator", true);