Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Greasemonkey get names of all open tabs

My ultimate goal is to have an autocompleting list that displays all open tabs (in Firefox), which I can reduce to the tab I want to switch to next.

I can do the completion / combobox etc, but I don't know how to get the list of all names (and favicons wold be a huge bonus). Would be grateful for any pointers.


1 Answers

Doesn't GreaseMonkey run in the context of a single web page? I don't think it can access the other tabs.

If you make a normal extension, you can call window.getBrowser().browsers as is described here:

Detecting tab closed (after closed) from firefox extension

Aside from learning a little XUL, your extension might be easy to port.

How to build a FireFox Extension

If you just want the functionality, here's an add-on that does what you want already

https://addons.mozilla.org/en-us/firefox/addon/list-all-tabs-menu/

like image 181
Lou Franco Avatar answered Jan 20 '26 15:01

Lou Franco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!