Firefox – Open a Set Of Tabs Without Using Add-Ons

2010-06-25 Initial Post

I was using a JavaScript script to open up a set of tabs for the sites of the TV channels that I normally watch. This allowed me to see the TV schedules in one IE session. The problem I started running into was that IE would crash occasionally or be very slow to load all the tabs. Eventually I got fed up with IE and wanted to find a way to do the same thing in Firefox.

Here’s a truncated version of the JavaScript script I was using to open up a set of tabs in IE. I don’t recall where I found the code for this. It works in IE 7 and IE 8.

var navOpenInBackgroundTab = 0x1000;
var oIE = new ActiveXObject("InternetExplorer.Application");
oIE.Navigate2("http://hd.net");
oIE.Navigate2("http://www.versus.com/schedule", navOpenInBackgroundTab);
oIE.Navigate2("http://www.spike.com/schedule/spike/", navOpenInBackgroundTab);
oIE.Visible = true;

Anyway, last week I searched and search to find a way to do something similar with Firefox. I found an add-on but it didn’t work correctly. So after some more research, I found that I can do this with just a simple batch file. Below is an example. Notice that http:// isn’t required—just put each domain name in quotation marks and put a space between each quoted domain name.

[batch]
"C:\Program Files\Mozilla Firefox\firefox.exe" "cnn.com" "msnbc.com"
[/batch]

Make a batch file for each set of tabs you want opened—you could have one for all the news sites and another for all the TV channel sites. This doesn’t affect your home page tabs at all. I’m using this with Firefox 3.6.4.

Tags: , , ,

Leave a Reply