aboutsummaryrefslogtreecommitdiff
path: root/profile/chrome/tabs
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-19 12:09:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-19 12:09:46 -0300
commite83be32ab336ae049e964f22ad4ead090ba01cde (patch)
treee58ead42832f708eb036fe45b579d529105c09ae /profile/chrome/tabs
parent395058823101437cd5ae4d14ffa80d297be4fd0e (diff)
downloadfirefoxer-e83be32ab336ae049e964f22ad4ead090ba01cde.tar.gz
firefoxer-e83be32ab336ae049e964f22ad4ead090ba01cde.tar.bz2
Feat: manage user.js
Diffstat (limited to 'profile/chrome/tabs')
-rw-r--r--profile/chrome/tabs/hide.css40
-rw-r--r--profile/chrome/tabs/tree.css13
2 files changed, 53 insertions, 0 deletions
diff --git a/profile/chrome/tabs/hide.css b/profile/chrome/tabs/hide.css
new file mode 100644
index 0000000..db68534
--- /dev/null
+++ b/profile/chrome/tabs/hide.css
@@ -0,0 +1,40 @@
+/**
+ * Hiding the tab bar.
+ *
+ * Works best with Tree Style Tab addon:
+ * https://github.com/piroor/treestyletab
+ */
+
+/**
+ * Hide horizontal tabs at the top of the window #1349, #1672, #2147
+ * https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#hide-horizontal-tabs-at-the-top-of-the-window-1349-1672-2147
+ */
+
+/*
+#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
+ opacity: 0;
+ pointer-events: none;
+}
+*/
+
+/**
+ * Always hide the tab bar.
+ */
+#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
+ visibility: collapse !important;
+}
+
+/**
+ * Only hide horizontal tabs if Tree Style Tabs sidebar is visible
+ * Only works in Firefox if layout.css.has-selector.enabled is set to true in about:config.
+ * https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#only-hide-horizontal-tabs-if-tree-style-tabs-sidebar-is-visible
+ */
+/*
+html#main-window body:has(#sidebar-box[sidebarcommand=treestyletab_piro_sakura_ne_jp-sidebar-action][checked=true]:not([hidden=true])) #TabsToolbar {
+ visibility: collapse !important;
+}
+*/
+/*#main-window body:has(#browser vbox[id="sidebar-box"][hidden=false]) #TabsToolbar {/*
+ visibility: collapse !important;
+}
+*/
diff --git a/profile/chrome/tabs/tree.css b/profile/chrome/tabs/tree.css
new file mode 100644
index 0000000..c41206a
--- /dev/null
+++ b/profile/chrome/tabs/tree.css
@@ -0,0 +1,13 @@
+/**
+ * Tree Style Tab customizations
+ * https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules
+ */
+
+/**
+ * Hide the "Tree Style Tab" header at the top of the sidebar
+ * https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#hide-the-tree-style-tab-header-at-the-top-of-the-sidebar
+ */
+
+#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
+ display: none;
+}