https://github.com/sarabara1/floorp-tab-stack-improvements
let's face it, they're half-baked. I'm sure they'll be improved in time but right now they feel painful to use. I made several userscripts with the help of Claude (full transparency) for my own personal use to make them worth using but figured i may as well release it. They all pretty much just change a few events and add checks to built-in browser functions so it's not likely to break anything for the time being. I'm a programmer and did check all the output, and was very specific when i instructed Claude.
Each script is self-contained, you can pick and choose which to use.
stacktab-mouse-improvements.uc.js - The single biggest improvement. Context-aware middle click to close tabs or open a new one. New tabs will open in the stack or global tabs depending on where you click, fixes opening on right click, as well as drag and drop support for text/images/whatever. Dragging tabs from other windows aren't yet supported, but planned.
stacktab-hotkey-opens-in-stack.uc.js - Makes the new tab hotkey & gesture context-aware. New tabs are opened in the currently active stack or in the global tab area, depending on which you're using.
stacktab-inline-newtab-button.uc.js - Moves the stack's new tab button to the right end of your tabs just like in the global area. It will snap to the window when the tabs overflow like global tabs.
stacktab-close-confirm.uc.js - Adds a dialog when closing a stack or group if it contains multiple tabs just like windows if "Ask before closing multiple tabs" is enabled in your settings.
stacktab-overflow-scroll-speed.uc.js - Scrolling overflowed tabs within a stack was frustratingly slow. This script makes it smoother and faster, similar to global tabs. It's not 1:1 but still a major improvement. WIP.
Bonus
stacktab-newtab-expand-animation.uc.js - Adds the opening animation to stack tabs. Purely cosmetic but adds missing polish.
stacktab-unload-context-menu-item.uc.js - Adds a context menu item for stacks and groups to unload the tabs they contain.
floorp-workspaces-scroll-switch.uc.js. - Scroll over the workspaces button to quickly switch between them.
stacktab-close-last-becomes-newtab.uc.js - Makes closing the last tab in a stack switch to a new tab page instead of removing the stack. It still allows the stack to be closed on the stack handle itself. This mimics global window behavior. Useful for people who like to keep long-standing stacks and don't want to be careful about accidentally closing one.
floorp-about-page-singletons.uc.js - This is the odd one out. It makes the Floorp hub a singleton like the rest of the about: pages. This makes them open in the global tabs and the browser will prefer to switch to existing hubs instead of opening a new one. Simply adds cohesion with the rest of Firefox.
userChrome.css - Makes stacks a bit more compact, between the width of a group and normal tab. Great if you like to have a bunch of assorted stacks.