mbnuqw / sidebery

Firefox extension for managing tabs and bookmarks in sidebar.
MIT License
3.28k stars 166 forks source link

Optional changing station titlePreface on extension opening/close for easy hiding horizontal tabs #214

Closed AlexBeLi closed 4 years ago

AlexBeLi commented 4 years ago

By using rule like this in userChrome.css

#main-window[titlepreface*="[Sideberry] "] #TabsToolbar {
  visibility: collapse !important;
}
mbnuqw commented 4 years ago

This is not possible with current API, sorry. If 1332447 will be fixed (I want to believe...) I'll definitely add automatic hiding of the horizontal tabs.

AlexBeLi commented 4 years ago

You probably missunderstood, sorry for bad speaking. This is just workaround before 1332447, based on changing titlePreface (non-english), if Sideberry opened in current window

browser.windows.update(windowId, {titlePreface: '[Sideberry] '});

I also want to believe, but megabar is more important...

mbnuqw commented 4 years ago

Oh, nice! Thanks for sharing this. I'll definitely add an option for marking windows with active sidebery and add userChrome.css snippet!

Peek 2020-04-29 22-58

jathek commented 4 years ago

Does this change the window title to "[Sidebery] Original Title"? If so, can "[Sidebery]" be substituted for something shorter? Or perhaps if there's a titleSuffix option you can use that. Or use both.

mbnuqw commented 4 years ago

@nearcatch, you will be able to set your own value (e.g. some "empty" unicode sign) and, of course, it will be optional.

mbnuqw commented 4 years ago

Added in v4.9.0