7 ms·
Tree Style Tabs Extension Ported to Firefox 57
- kibwen 9y agoFound in a comment in today's Quantum thread: "It still can't hide the tab bar (API will come in later releases) but it works!"; "https://bugzil.la/1332447 https://bugzil.la/1332447 is the bug for adding a WebExtensions API for hiding the tab bar."
- Ar-Curunir 9y agoThis can be done via userChrome.css. Just add this: #tabbrowser-tabs { visibility: collapse !important; }
- kibwen 9y agoExcellent, I was digging around for an about:config pref but this works too. :)
- guns 9y agoThanks for this tip! Private browsing mode causes the tab bar to reappear (though the tabs are still hidden), so I found that the selector #TabsToolbar works even better. Also, the large, bright sidebar header can be hidden with the #sidebar-header selector. Combining those, we have: #TabsToolbar, #sidebar-header { visibility: collapse !important; }
- mannigfaltig 9y agoI've added a modification that removes any margin at the top: #TabsToolbar, #sidebar-header { visibility: collapse !important; } #TabsToolbar { margin-bottom: -21px !important; } Then go to the hamburger menu > Customization and check "Title Bar" at the bottom left. Then it pretty much looks like FF 56. I've also changed the style of TSTs in the add-on settings (all the way at the bottom; not in userChrome.css) such that the tabs don't take up as much vertical space and to hide the close box button (and only show it on the mouse-over event): .closebox { display: none } .tab:hover .closebox { display: block; } .tab { padding-top: 0px; padding-bottom: 0px; } You can make `.tab` even tighter: .tab .icon { padding-top: 2px; /* reducing it by 2px */ padding-bottom: 2px; } :root { --tab-height: 22px; /* reducing it by 4px */ }
- wakkaflokka 9y agoNovice question... where do I find userChrome.css on Windows?
- kibwen 9y agoC:\Users\wakkaflokka\AppData\Roaming\Mozilla\Firefox\Profiles\random_gibberish_identifier\chrome\userChrome.css
- bzbarsky 9y agoYou create it in the "chrome" folder in your Firefox profile. The "chrome" folder itself may need to be created. https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile https://support.mozilla.org/en-US/kb/profiles-where-firefox-... has directions for finding where the profile lives.
- yamaneko 9y agoA bit late to the party, but posting for reference in case someone finds this post in the future. For Ubuntu, I did as the following: 1. Created the chrome folder at `~/.mozilla/<your-profile-id>.default/` 2. Created `~/.mozilla/<your-profile-id>.default/chrome/userChrome.css` and added @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); at the top of the file. 3. Added customizations after this line. The resulting file will be like: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* * TreeStyleTabs solutions to remove tabs * * Solution by: https://news.ycombinator.com/item?id=15343940 */ #TabsToolbar, #sidebar-header { visibility: collapse !important; } #TabsToolbar { margin-bottom: -21px !important; }
- mastax 9y agoIf you're on windows and this makes your window buttons disappear, set browser.tabs.drawInTitlebar to false in about:config
- deleted 9y ago[deleted]
- unicornporn 9y agoArghhhh Mozilla, FF57 is closing in and this shouldn't require userChrome hacking!
- weaksauce 9y agoThat's good. This one was the one that most people were complaining about not being possible in webext. Glad to show people that the Firefox team has good intentions.
- syshum 9y ago>>Glad to show people that the Firefox team has good intentions. That is rich... Giving the FF Team credit and not the Hard work of the Dev to get around all the massive amount of problems and crap the FF Team created for everyone in the pursuit of turning FF into Chrome
- weaksauce 9y agoThey worked hard to make the popular extensions possible. The dev worked hard to make the extension compatible. All I was saying is that the Firefox team at Mozilla got way too much hate for moving the state of Firefox forward. People were leaving in droves because Firefox was not fast and used a lot of memory and crashed because of addons. Firefox took steps to rectify that and the release of quantum shows that they may actually be faster than chrome. The have made monumental strides in performance and memory use and the webext model has allowed them the aggressive refactoring that made those strides possible.
- syshum 9y agoYes we are all aware they have choosen performance over Customization and privacy. they have choosen to make a Chrome Clone instead of Supporting the users that stuck with them for decades largely because FF was customizable I could care less about performance, If my PC needs more RAM, I add more RAM, it is Cheap I care about productivity and Customization.
- weaksauce 9y agowell, they are the more privacy oriented browser for 1. performance is a big issue and ram doesn't fix it. processors aren't getting much faster... they are getting more parallelized but not much faster. The move to webext was a way to allow for firefox to iterate faster toward a more performant browser with the tools in place to allow for customization and experimentation for new extension APIs(look at webext experiments[0]). If it's a worthwhile feature you can add it in and they can see that it works and then they can merge the experiment into firefox mainland. it's more work but results in a more performant, stable, privacy oriented browser. 0. see the one for better keyboard support to enable vimperator style extensions.
- hawski 9y agoDoes anyone know if Tab Groups (or something like it) will be ported to 57?
- kibwen 9y agoLooks like this is the Bugzilla issue for providing the APIs to enable a Tab Groups port: https://bugzilla.mozilla.org/show_bug.cgi?id=1384515 https://bugzilla.mozilla.org/show_bug.cgi?id=1384515 ; "I've heard from several people that they're looking for an API that enables the usage of tabbrowser.showTab, tabbrowser.hideTab and/or tabbrowser.showOnlyTheseTabs. The primary use case I can point to right now is TabGroups (in fact I think this is blocking TabGroups from being ported to a WebExtension)."
- jonalmeida 9y agoThe developer had put out a note saying that Tab Groups won't be suppressed by WebExtensions, and the work in order to do a partial port isn't worth their time.
- nyordanov 9y agoThe developer of this alternative - https://github.com/denschub/firefox-tabgroups https://github.com/denschub/firefox-tabgroups - has said that they will port the add-on to a WebExtension, but they are waiting on this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1384515 https://bugzilla.mozilla.org/show_bug.cgi?id=1384515
- nyordanov 9y ago"Something like it": https://github.com/denschub/firefox-tabgroups https://github.com/denschub/firefox-tabgroups https://github.com/kesselborn/conex https://github.com/kesselborn/conex
- jitl 9y agoThis is awesome; Tree Tabs is one of my two essential extensions, the other being Vimperator. I'm sticking with the Firefox ESR that supports Vimperator until Vimperator is ported (or re-written) for WebExtensions. Unfortunately, Vimperator is struggling to find contributors to help with the migration. The other vim-themed extensions out there like Vimuim on Chrome or Saka Key just don't come close :( [edit: added Saka Key]
- kibwen 9y agoNot a Vimperator user (though vim is my primary editor) so I can't say for certain how well any of these stack up, but in the other thread people were suggesting Saka Key as an alternative: https://news.ycombinator.com/item?id=15340154 https://news.ycombinator.com/item?id=15340154
- jitl 9y agoI looked over the docs -- seems very similar to Vimium, and doesn't come close to Vimperator. My one feature that I prefer in Vimperator is how it handles link-clicking. To click a link in Vimperator, you type `f`, then start typing the text of the link you want to follow. Once your search only matches a single link, the Vimperator clicks that link or button for you. You can also type a number, which selects that match. In Vimium, Saka Key, etc, you type `f`, and then type a short, unique code, which is assigned to each clickable element in order. So, for a page like Hacker News, to follow the third "comments" link in Vimperator, I type `fcommen3`. In Vimium, I type `f`, then squint my eyes and parse the labels it applies, and them maybe type `sw` or something random.
- dictum 9y ago> To click a link in Vimperator, you type `f`, then start typing the text of the link you want to follow. Once your search only matches a single link, the Vimperator clicks that link or button for you. You can also type a number, which selects that match. You can do that with Vimium too. The setting is called "Use the link's name and numbers for link-hint filtering". IIRC "Require Enter when filtering hints" is selected by default when you enable the previous setting, so the link is only highlighted and you have to press enter to open it.
- Eridrus 9y agoDoes anyone know what Firefox had to do to support this in WebExtensions? Is it at all generic, or is it super specific to the Tree Style Tabs extension?
- aswan 9y agoI haven't looked closely at the extension but I think the two big building blocks are sidebars [1] and the tabs API [2], both of which have many applications outside of tree style tabs. The "hide the tabstrip" bug mentioned in other comments here is more narrowly focused than those two but it hasn't landed yet... [1] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/user_interface/Sidebars https://developer.mozilla.org/en-US/Add-ons/WebExtensions/us... [2] https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/tabs https://developer.mozilla.org/en-US/Add-ons/WebExtensions/AP...
- Manishearth 9y agoThe sidebar API had to be added, but this was added quite a while back (been using it with Tab Center Redux since nightly 56 IIRC). The tabs API was missing some stuff too. There was a Tree Tabs webext that due to the lack of some tabs api stuff was unable to have full functionality without doing lots of disk I/O in the use case of a large number of tabs, but I think that functionality was since added. Only missing thing is the ability to hide the tab strip, now (AIUI)
- mirekrusin 9y agoThis FF57 looks good - like a revolution about to come. I've made a switch in few minutes and... oh boy, you feel the difference.
- alkonaut 9y agoFeels like I'm missing some background here - what happened between 56 and 57 that made it necessary to port extensions? Some revolutionary architectural change?
- mattashii 9y agoFirefox stopped the support for legacy (non-WebExtension) APIs, and secondly FF57 introduced many new WebExtension APIs as 'replacements', making it only feasable to implement TST using WebExtension in FF57+. As mentioned, some APIs are missing to allow the last plugins to be rewritten as WebExtension versions, but it is close to feature-compatible with FF56- APIs.
- AlphaWeaver 9y agoI'm not sure if it was between 56 and 57, but Firefox recently switched to using web extensions, which is the same kind of extensions that Chrome uses, compared to Firefox extension types that it used previously. Therefore existing Firefox extensions had to be updated.
- mintplant 9y ago> which is the same kind of extensions that Chrome uses Sort of. The WebExtensions API aims to be a superset of Chrome's extension API. WebExtensions aren't and won't be limited to Chrome's feature set and Mozilla is in the process of rapidly expanding their capabilities. As opposed to the previous Firefox Add-ons API, which essentially exposed a ton of unstable internal surface area to dynamically-loaded third-party code, WebExtensions provide a stable, explicit interface that Mozilla can support without breaking things between releases or due to architectural changes like e10s/multi-process. The kinds of improvements Mozilla wants to make in Firefox going forward would end up breaking tons of extensions anyway, over and over again with each significant change. This way, there only needs to be one migration to the stable WebExtensions API.
- pornel 9y agoYes, they've migrated to a new multiprocess architecture and the extra isolation requires new approach to integrating extensions. Previous extension API assumed UI, pages and everything else lived in the same process.
- lanius 9y agoWow, I wish I knew about this extension before. Too bad Chrome doesn't have this.
- baby 9y agoThat’s why I could never use chrome. Tabs on the side is just more logical.
- UncleSlacky 9y agoThat's why I use Vivaldi.
- Renaud 9y agoNice for Tree Style Tabs, which I find essential. However, I'm worried about some other big extensions that have really been useful not being able to be ported to WebExtensions, like DownThem'All, the developer is pretty pissed at Mozilla[1] and offers some insights about the design decisions made by Mozilla that could have a big impact on the ability of some AddOns to tap into the APIs they need to do anything useful. [1]:http://www.downthemall.net/re-downthemall-and-webextensions-or-why-why-i-am-done-with-mozilla/ http://www.downthemall.net/re-downthemall-and-webextensions-...
- rjzzleep 9y agoYou might find the actual discussion quite interesting it's linked here [1] [1]: https://mail.mozilla.org/pipermail/dev-addons/2016-December/002367.html https://mail.mozilla.org/pipermail/dev-addons/2016-December/...
- ronjouch 9y agoAnd as for a DownThemAll fallback whose feature subset may be enough for you, consider Download Star: https://addons.mozilla.org/en-US/firefox/addon/download-star/ https://addons.mozilla.org/en-US/firefox/addon/download-star...
- bhrgunatha 9y agoIt's not just about being able to select what to download, that's a minimal part of what makes DTA so useful. Does it allow you to manage your downloads though - like supporting multi-source downloads, pausing and re-starting, exporting/ importing lists, prioritise, re-order, limit speed, integrating with the save dialog and menus ... DownThemAll is the one extension that might force me to abandon firefox or to stick with an ESR release and not upgrade.
- ronjouch 9y agoThus, my phrasing "feature _subset_ _may_ be enough" :) . I used to use DTA for this subset and am happy about Download Star, but it's totally understandable you relied on more. As for "not upgrade": do stay on ESR for as long as possible and hope more fully-formed alternatives for your favorite addons eventually arrive. But really, don't disable upgrades altogether and risk being pwned due to running an unpatched, insecure browser.
- SAI_Peregrinus 9y agoBest news all day! This is one of the most essential extensions that wasn't going to work before.
- jwarren 9y agoSea Containers is not exactly the same thing, but some may find it more useful: https://addons.mozilla.org/en-US/firefox/addon/sea-containers https://addons.mozilla.org/en-US/firefox/addon/sea-container... It takes advantage of the (relatively) new Containers feature in Firefox.
- pkamb 9y agoIs it the vertical display that people like about Tree Style Tabs, or the inheritance/nesting? I've always wondered why spawned child tabs don't retain the `Back` history to go back to the web page that created them. Would be so useful; do any extensions exist?
- randkyp 9y agoFor me, it's both. Nesting is helpful as a visual history indicator and a quick way to prune unused tabs that were opened closely in time. Great when you're doing a quick research. The vertical display helps locating tabs by its title and in general, narrower text on a page is easier to read. (Most screens nowadays are widescreen. Some blogs even overcompensate for this by having huge margins and even huge ads on the sidebar, but that's another story.)
- Manishearth 9y agoFWIW Tab Center Redux (which may have been moved into Tab Center itself, the old, formerly-non-webext addon, not sure if that happened) is pure vertical tabs with no tree. I like it a lot. Most folks who use Tree Style Tabs use the tree extensively. I generally try to keep nesting to one level, sometimes two.
- akho 9y agohttps://addons.mozilla.org/en-US/firefox/addon/backtrack-tab-history/ https://addons.mozilla.org/en-US/firefox/addon/backtrack-tab... Doesn’t work with 57, sadly.
- jacquesm 9y ago100's of tabs open regularly, without TST it is impossible to keep track of what is where without constantly searching.
- ikurei 9y agoI'd say it's both. Anecdotally, to me being able to see the whole title and in a vertical list is just enough to like it, it makes it so much easier to find something among a shitload of tabs. Also, I feel it's a much better use of space in widescreen displays. The tree part of it is less important, but also very useful to visually group related tabs. Task-managing feels wrong to me in most (all?) OSes I've tried. A browser window with 100 tabs, relating to different research topics and ideas, feels wrong. For that, I'd rather use one window per topic, and have the tabs in there be related, and that's what I tend to do. It's not always comfortable, and having several big/fullscreen windows from the same app in MacOS is a PITA. Also, you don't always know how much a task is gowing to grow and branch out... I'm always curious to know how other people deal with this and how they feel about it.
- pasbesoin 9y agoIt seems a lot of very significant extensions, important to large user bases, are going to have trouble making it to 57. What if Firefox developers were to take a break -- meaning, temporarily slow down -- from the browser development itself, once 57 is stable -- and put some time into helping to port some of those extensions? (At least, where code and license allow.) I think a lot of Firefox users would appreciate this, and it would help preserve a principal feature set (via those extensions) that has caused many people to choose Firefox and to stick with it, up to this point. In other words, Mozilla, please don't kill our extensions. How about helping them make the transition? (Also a good opportunity to learn where the new API may need more work/expansion) Thanks! P.S. Yes, I've been pissed about this change, for precisely this reason. Reading in this conversation how Mozilla is working to expand the new API, I'm given a bit of hope. And thus, this idea I'm suggesting. P.P.S. Yeah, this may be an unreasonable and ugly ask. Wading into a bunch of other people's code of varying quality. (Sorry.) Nonetheless... the extensions have been a crucial part of Firefox's advantage, for many.
- staktrace 9y agoPart of the problem is that APIs that are good for extensions are by definition bad for performance (because they allow the extension to hook into important places and do a lot of things). So there is an inherent tradeoff between extension functionality and browser performance. It's easy to ask for powerful extension APIs because the ask is free. Would you still ask for it if you had to sacrifice performance? (The answer writ large, as evidenced by hordes of Chrome users, is no).
- pasbesoin 9y agoYes. Because the way I use Firefox, together with extensions, is actually much more performant that e.g. stock Chrome -- or Chrome with the extensions it supports, as far as I know and understand.
- int_19h 9y agoSure. Why would I want two browsers that make identical compromises? It makes choice meaningless.
- deleted 9y ago[deleted]
- ropeladder 9y agoThis is great news. I'm still worried about what will happen to my large Scrapbook[1] archive, though. Most of the useful things about that plugin (saving, browsing, and loading files on the local disk) are not available in the new APIs I think. [1] https://addons.mozilla.org/en-US/firefox/addon/scrapbook/ https://addons.mozilla.org/en-US/firefox/addon/scrapbook/
- dotancohen 9y agoI actually abandoned Scrapbook years ago for fear of the format not being portable. In truth, now I've got data all scattered around but at least I'm not in this position. You might want to look at Zim which is more of a "personal wiki" but at least fits _my_ workflow for Scrapbook with a bit more copy-paste. I hope that it fits yours as well.
- jacquesm 9y agoI'm in the same boat, scrapbook is to me a must have and I'm going to be stuck on the older FF until it can be migrated. That's years of stuff in there.
- PurpleRamen 9y agoSeems there is a port in work: https://github.com/danny0838/webscrapbook https://github.com/danny0838/webscrapbook
- unicornporn 9y agoHoly hell, finally FF57 isn't looking quite as frightening. New TST even supports tab containers. I really hope Mozilla fixes the inability to hide the horizontal tab bar (without userChrome hacking) though…
- Manishearth 9y agoIt's in the works, just not there yet. At a rough glance I'd expect it in 58, but I can't be sure of that.
- jhasse 9y agohttps://bugzil.la/1332447 https://bugzil.la/1332447
- SeriousM 9y agoDoes it sync?
- petval 9y agoGood. I hope Tab Mix Plus will be upgraded too.
- ConfucianNardin 9y agoSadly, not much seems to be happening on that front: https://bugzilla.mozilla.org/show_bug.cgi?id=1226546 https://bugzilla.mozilla.org/show_bug.cgi?id=1226546 At the very least I'd want something to override ctrl+tab tab switching order (by most recently used instead of tab order in tab bar), and a popup showing the tabs in that order. Edit: Apparently the about:config setting browser.ctrlTab.previews gives you MRU and a popup. Unfortunately it shows large thumbnails of the tabs instead of just a list of the titles.
- baby 9y agoEssential part of My daily browsing. Still surprised it is still an addon and not default in browsers.
- eradicatethots 9y agoWhen will they drop backspace = go back? Chrome was right
- twobyfour 9y agoThat this could be done at all is a good sign for Firefox's future. I do wish they'd retained the ability to customize the UI on the navigation bar, but am now hopeful that more of the extensions that would have made me reluctant to upgrade will be ported.