diff options
Diffstat (limited to 'home/xyz/.mozilla')
| -rw-r--r-- | home/xyz/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css | 39 | ||||
| -rw-r--r-- | home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js | 28 |
2 files changed, 58 insertions, 9 deletions
diff --git a/home/xyz/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css b/home/xyz/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css index 16bf50b2..1d45123d 100644 --- a/home/xyz/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css +++ b/home/xyz/.mozilla/firefox/xxxxxxxx.fly/chrome/userChrome.css @@ -1,18 +1,43 @@ -@import url(firefox-csshacks/chrome/navbar_tabs_oneliner.css); +/* need `user_pref("userchrome.navbar-tabs-oneliner.tabs-on-right.enabled", + * true);` in /home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js to make + * its tab on right instead of left, like old + * firefox-csshacks/chrome/deprecated/navbar_tabs_oneliner.css */ +@import url(firefox-csshacks/chrome/oneline_toolbar.css); @import url(firefox-csshacks/chrome/urlbar_popup_full_width.css); -/* On my laptop with linux, if only has more tool >> button and application menu hambugger button, need at least 733px for search bookmarks urls and title shown in one line, or 39vw when full screen on my xyzinsp laptop. Not sure why % is not working. -I choose to use vw because after resize to a smaller window, the navigation bar will be too big if use px. -I choose a lower vw to give more room to tabs. */ -#navigator-toolbox { --uc-navigationbar-width: 30vw !important; } +/* In the past I use old + * firefox-csshacks/chrome/deprecated/navbar_tabs_oneliner.css, on my laptop + * with linux, if only has more tool >> button and application menu hambugger + * button, need at least 733px for --uc-navigationbar-width for search + * bookmarks urls and title shown in one line, or 39vw when full screen on my + * xyzinsp laptop. Not sure why % is not working. + * + * I choose to use vw because after resize to a smaller window, the navigation + * bar will be too big if use px. + * + * I choose a lower vw to give more room to tabs. + * + * Now I use new firefox-csshacks/chrome/oneline_toolbar.css, + * --uc-navigationbar-width not work any more, by reading the css source code I + * use grid-template-columns instead, and I use 3fr which seems mean 30% which + * is similar to vw */ +#navigator-toolbox { grid-template-columns: 3fr 7fr !important; } /* Narror windows will cause url bar on top of extensions button, hamburger * button, and tabs. It will also cause extensions button and hamburger button * overlap each other. I don't care if url bar is too narror. I prefer url bar * never on top of other items. I prefer extensions button and hamburger button * never overlap. Set min-width to 0 for urlbar-container gives me the result I - * want */ -#urlbar-container { min-width: 0 !important; } + * want. + * + * When using new firefox-csshacks/chrome/oneline_toolbar.css instead of old + * firefox-csshacks/chrome/legacy/navbar_tabs_oneliner.css, also need + * `flex-shrink: 1 !important;` instead of only `min-width: 0 !important;` for + * it to work */ +#urlbar-container{ + min-width: 0 !important; + flex-shrink: 1 !important; +} /* hide history back, forward-button, and ^ alltabs-button */ #back-button, #forward-button, #alltabs-button { display: none !important; } diff --git a/home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js b/home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js index fe0c8be6..edd8dd5d 100644 --- a/home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js +++ b/home/xyz/.mozilla/firefox/xxxxxxxx.fly/user-overrides.js @@ -6,13 +6,14 @@ user_pref("_user.js.parrot", "custom overrides: starting"); // douyu pay, bilibili stream watch and user space, pixiv some images not show // now default for version 115.1 so no need //user_pref("network.http.referer.XOriginPolicy", 0); -// in the past: baidu +// in the past: baidu; now: zwfwbl.cscse.edu.cn //user_pref("security.ssl.require_safe_negotiation", false); // fixes and issues unrelated to arkenfox user.js and addons: // disable ublock origin: // baidu drive save to my drive not working // baidu drive verify phone when delete file not working +// alipay login sliding shape challenge, maybe also need to disable ETP and RFP // disable enhanced tracking protection: // google drive can't download // douyu verification for change password @@ -26,13 +27,15 @@ user_pref("_user.js.parrot", "custom overrides: starting"); // mail.qq.com // arkenfox v128 disabled these previously enabled options, I want to enable them -// set to false to fix: image upload from local, image check not robot, disable surfingkey alt-s hotkey, twitch login and follow, douyin login, douyin chat in live streaming room, google map highway name, protomaps China province name, joinhandshake.com maybe need to disable this once, adobe express +// set to false to fix: image upload from local, image check not robot, disable surfingkey alt-s hotkey, twitch login and follow, douyin login, douyin chat in live streaming room, google map highway name, protomaps China province name, joinhandshake.com maybe need to disable this once, adobe express, some VPS web VNC keyboard shift modifier not working (e.g., I can't press shift+[ to get { and instead I get [, also for all other keys) user_pref("privacy.resistFingerprinting", true); user_pref("privacy.resistFingerprinting.letterboxing", true); // this can be used to disable RFP by domain, see user.js and https://github.com/arkenfox/user.js/issues/1804#issuecomment-2331701765 //user_pref("privacy.resistFingerprinting.exemptedDomains", "*.example.invalid"); // set to false to fix: labster, protomaps, starlink.com availability map, istheservicedown.com outage map, adobe express user_pref("webgl.disabled", true); +// pp maybe need this (disable OCSP) for its mobile network to work +//user_pref("security.OCSP.enabled", 0); // http://kb.mozillazine.org/Network.cookie.lifetimePolicy // https://github.com/arkenfox/user.js/releases/tag/102.1 @@ -67,6 +70,19 @@ user_pref("media.autoplay.default", 5); user_pref("gfx.webrender.all", true); user_pref("media.ffmpeg.vaapi.enabled", true); +// arkenfox user.js new verison 140 changed those from true to false, but I'm +// used to the old behavior, so I changed them back. The first three settings +// maybe obsolete in the future but I'm not sure, I just put them all here. +// More see https://github.com/arkenfox/user.js/releases/tag/140.1 and +// https://github.com/arkenfox/user.js/issues/1974. +user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true); +user_pref("privacy.clearSiteData.historyFormDataAndDownloads", true); +user_pref("privacy.clearHistory.historyFormDataAndDownloads", true); +user_pref("privacy.clearOnShutdown_v2.browsingHistoryAndDownloads", true); +user_pref("privacy.clearOnShutdown_v2.downloads", true); +user_pref("privacy.clearSiteData.browsingHistoryAndDownloads", true); +user_pref("privacy.clearHistory.browsingHistoryAndDownloads", true); + // old about:config and settings, for perfsCleaner.sh // use extensions on more sites user_pref("extensions.webextensions.restrictedDomains", ""); @@ -95,6 +111,14 @@ user_pref("browser.urlbar.suggest.topsites", false); //user_pref("browser.startup.page", 1); //user_pref("browser.startup.homepage", "javascript:"); +// no need on pinephone +// +// chrome/userChrome.css need this for +// chrome/firefox-csshacks/chrome/oneline_toolbar.css to work like old +// chrome/firefox-csshacks/chrome/deprecated/navbar_tabs_oneliner.css with tab +// on right instead of left +user_pref("userchrome.navbar-tabs-oneliner.tabs-on-right.enabled", true); + // I switched to pass, no need firefox password manager anymore user_pref("signon.rememberSignons", false); // no need credit card save and autofill |
