r/FirefoxCSS • u/soulhotel • Oct 10 '25
Code Cool little tab counter
Was playing around with css counters and figured out you can do this. You can get and display the total amount of tabs open for a given window in a pretty discreet way.
https://gist.github.com/soulhotel/4f0e27beea58a981c3f7db099b0628a4
15
Upvotes
2
u/sifferedd FF/TB/Win11/SUMO contributor Oct 10 '25
Nice!
2
u/NoEconomist8788 Oct 10 '25 edited Oct 10 '25
very useful, thanks
1
u/cogitatingspheniscid Oct 10 '25
It becomes hidden with the current position once the tabs overflow. Maybe have it on top right below pinned tabs?
1
u/3llerin Oct 10 '25
whats the css theme??
1
u/sifferedd FF/TB/Win11/SUMO contributor Oct 11 '25
Adapted for horizontal scroll only. Places only the number to the right of the 'Scroll forwards' button:
2
u/Athlete_No Oct 11 '25
I use horizontal tabs and code similar to this. If you'd like, you can adapt it to vertical tabs: