aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-08-11 19:11:41 +0200
committerDuncaen <mail@duncano.de>2017-08-11 19:11:41 +0200
commit6158945748738a5f61b8df683dfbf980af9ddb28 (patch)
treea23ed69e87303baddf45cfdb0e1f2cfe9665c3cf
parent01d03f1a94f0ec3e98b646910c2d1556207597ff (diff)
downloaddotfiles-6158945748738a5f61b8df683dfbf980af9ddb28.tar.gz
firefox: compact theme and default setting changes
-rwxr-xr-xinstall.sh5
-rw-r--r--user.js4
-rw-r--r--userChrome.css42
3 files changed, 48 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 10c1369..68ae85d 100755
--- a/install.sh
+++ b/install.sh
@@ -97,10 +97,11 @@ _firefox() {
for p in ~/.mozilla/firefox/*/; do
p="${p%/*}"; p="${p##*/}"
case "$p" in *backup*|*crashrecovery*|"") continue ;; esac
- printf " %s" "'${p}'"
+ printf " %s\n" "'${p}'"
_ln_home "user.js" ".mozilla/firefox/$p/user.js"
+ mkdir -p "$HOME/.mozilla/firefox/$p/chrome"
+ _ln_home "userChrome.css" ".mozilla/firefox/$p/chrome/userChrome.css"
done
- printf "\n"
}
: ${PWD:=$(pwd)}
diff --git a/user.js b/user.js
index 13c9260..fb7f086 100644
--- a/user.js
+++ b/user.js
@@ -7,8 +7,9 @@ user_pref('browser.fullscreen.animate', false);
user_pref('browser.tabs.animate', false);
user_pref('browser.download.animateNotifications', false);
+user_pref('browser.urlbar.oneOffSearches', false);
user_pref('browser.urlbar.trimURLs', false);
-user_pref('browser.urlbar.unifiedcomplete', false);
+user_pref('browser.urlbar.unifiedcomplete', true);
user_pref('browser.urlbar.daysBeforeHidingSuggestionsPrompt', 0);
user_pref('browser.search.suggest.enabled', false);
@@ -113,6 +114,7 @@ user_pref('dom.indexedDB.enabled', false);
user_pref('dom.enable_user_timing', false);
user_pref('dom.netinfo.enabled', false);
user_pref('dom.netinfo.enabled', false);
+user_perf('dom.push.enabled', false);
user_pref('device.sensors.enabled', false);
user_pref('camera.control.face_detection.enabled', false);
diff --git a/userChrome.css b/userChrome.css
new file mode 100644
index 0000000..8a10d2d
--- /dev/null
+++ b/userChrome.css
@@ -0,0 +1,42 @@
+:root {
+ --tab-selection-background-color: var(--chrome-secondary-background-color) !important;
+ --tab-selection-color: var(--chrome-secondary-color) !important;
+
+ --chrome-nav-buttons-background: var(--chrome-secondary-background-color) !important;
+ --toolbarbutton-hover-background: none !important;
+
+ --tab-min-height: 21px !important;
+ --tab-curve-width: 20px !important;
+
+ --url-and-searchbar-background-color: var(--chrome-secondary-background-color) !important;
+}
+
+.tab-close-button:not(:hover):-moz-lwtheme-darktext {
+ /* light only */
+ background-image: -moz-image-rect(url("chrome://global/skin/icons/close.svg"), 0, 96, 16, 80) !important;
+}
+
+#urlbar {
+ background-color: var(--chrome-secondary-background-color) !important;
+}
+
+.scrollbutton-up, .scrollbutton-down {
+ min-width: 0 !important;
+}
+
+.toolbarbutton-icon, toolbarbutton, .toolbarbutton-badge-stack, #urlbar, .urlbar-input-box, #reload-button, #urlbar-go-button, #stop-button {
+ border: none !important;
+}
+
+#back-button {
+ padding-inline-start: 0 !important;
+ padding-inline-end: 0 !important;
+}
+
+#nav-bar {
+ max-height: 28px !important;
+}
+
+#nav-bar toolbarbutton {
+ padding: 0 !important;
+}