Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide big "Tree Style Tab" title in firefox-nightly #1397

Closed
tgy opened this issue Sep 30, 2017 · 9 comments
Closed

Hide big "Tree Style Tab" title in firefox-nightly #1397

tgy opened this issue Sep 30, 2017 · 9 comments

Comments

@tgy
Copy link

tgy commented Sep 30, 2017

Is there a way to hide the huge "Tree Style Tab" at the top of the component?

deepinscreenshot_select-area_20170930112654

Environment

  • Platform (OS): Linux stewie 4.12.13-1-ARCH #1 SMP PREEMPT Fri Sep 15 06:36:43 UTC 2017 x86_64 GNU/Linux
  • Version of Firefox: Mozilla Firefox 58.0a1
  • Version (or revision) of Tree Style Tab: Tree Style Tab 2.0.1
@Keith94
Copy link

Keith94 commented Sep 30, 2017

Add the following to userChrome.css to hide TST's header

#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
  display: none;
}

@tgy
Copy link
Author

tgy commented Sep 30, 2017

Thank you @Keith94, that worked perfectly! 👍

@tgy tgy closed this as completed Sep 30, 2017
@oerms
Copy link

oerms commented Nov 14, 2017

I am sorry to bring this up again. This does not seem to work for me. I have created a userchrome.css with the following:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
    display: none;
}

but the huge selector is still there.
I am running:
Firefox 57.0 (64-Bit)
TST 2.2.3

Thank you for supporting TST with web extensions!

@tgy
Copy link
Author

tgy commented Nov 14, 2017

@oerms with Mozilla Firefox 59.0a1, it still works on my side.

Here is the exact content of my /home/<user>/.mozilla/firefox/<profile>/chrome/userChrome.css:

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.treestyletab-tabbar-toolbar {
    opacity: 1.0 !important;
}

.tabbrowser-tabs[treestyletab-mode="vertical"] {
    opacity: 1.0 !important;
}

.tabbrowser-tabs[treestyletab-mode="vertical"] .tabbrowser-tab {
    opacity: 1.0 !important;
    text-shadow: 0px 0px 0px white !important;
    margin-top:    -2px !important;
    margin-bottom: -2px !important;
}

#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
  display: none;
}

@oerms
Copy link

oerms commented Nov 15, 2017

Somehow this does the trick.
Thank you very much!

@hmijail
Copy link

hmijail commented Aug 26, 2018

I also failed to get it working, and now I realize that it was my fault: I was trying to insert the snippet in the "Extra style rules for sidebar contents" box in the Advanced section of TST prefs.

Reporting just in case it helps someone else.

@heyakyra
Copy link

Since nobody has linked to the upstream bug in Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1410548

@localjo
Copy link

localjo commented Jun 3, 2021

I had trouble getting this to work, until I realized that userChrome.css doesn't work by default in Firefox anymore. To enable it, you have to go to about:config and set toolkit.legacyUserProfileCustomizations.stylesheets to true.

With all the settings available for TST, I would expect something like this to be a quick toggle in the appearance section of TST settings.

@irvinm
Copy link
Contributor

irvinm commented Jun 3, 2021

@localjo everything in this thread is outside of what TST can control. (about:config, userChrome.css, etc.) There is no way for TST to provide a "quick toggle" for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants