From a65cd4f9fe22d25ab4bed1b3628e06a11d0780bb Mon Sep 17 00:00:00 2001 From: ngoomie Date: Wed, 19 Apr 2023 22:38:23 -0600 Subject: [PATCH] Add Firefox userChrome stuff --- Firefox/README.md | 1 + Firefox/chrome/userChrome files/TST.css | 39 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 Firefox/README.md create mode 100644 Firefox/chrome/userChrome files/TST.css diff --git a/Firefox/README.md b/Firefox/README.md new file mode 100644 index 0000000..d5282f0 --- /dev/null +++ b/Firefox/README.md @@ -0,0 +1 @@ +I believe the userChrome CSS for the Tree Style Tabs addon comes from the Github wiki for the addon itself, but I'm genuinely not quite sure atm. Will definitely have to double-check later \ No newline at end of file diff --git a/Firefox/chrome/userChrome files/TST.css b/Firefox/chrome/userChrome files/TST.css new file mode 100644 index 0000000..b9fd391 --- /dev/null +++ b/Firefox/chrome/userChrome files/TST.css @@ -0,0 +1,39 @@ +#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items { + opacity: 0; + pointer-events: none; +} +#main-window:not([tabsintitlebar="true"]) #TabsToolbar { + visibility: collapse !important; +} + +#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header { + display: none; +} + +/* TST 2.4.17 - Fix for #1822 - Fix for Photon themed new tab favicon */ +#tabbar tab-item:not(.loading) tab-favicon .favicon-image[src^="moz-extension://"][src$="/resources/icons/globe-16.svg"] { + display: none; +} +#tabbar tab-item:not(.loading) tab-favicon .favicon-image[src^="moz-extension://"][src$="/resources/icons/globe-16.svg"] ~ .favicon-default::before { + display: inline-block !important; + + background: url("chrome://branding/content/icon32.png") no-repeat center / 100% !important; + mask: none !important; +} +#tabbar tab-item:not(.loading)[data-current-uri="about:privatebrowsing"] tab-favicon .favicon-image[src^="moz-extension://"][src$="/resources/icons/globe-16.svg"] ~ .favicon-default::before { + background: url("chrome://browser/skin/privatebrowsing/favicon.svg") no-repeat center / 100% !important; +} + +/* TST 2.4.17 - Fix for #1822 - Fix for Photon themed default favicon */ +tab-item:not(.group-tab):not([data-current-uri^="chrome:"]):not([data-current-uri^="about:addons"]):not([data-current-uri^="about:preferences"]) +tab-favicon .favicon-default::before { + background: url("/sidebar/styles/icons/moon.svg") no-repeat center / 100% !important; + mask: none !important; +} + +#tabbar:not(.overflow) .after-tabs { + display: none; +} +#tabbar:not(.overflow) ~ .after-tabs { + display: block; +}