How to start same windows & tabs in the same monitors each time?
I would like to be able to start the same URL's, same tabs, same size windows on the same monitors each I start FF. I am not talking about just restoring current tabs after restart or crash.. Can this be done with a copy of the sessionstore file? Maybe by saving a copy of the desire startup tabs and then doing a script that copies it over before starting FF? FFv4.ob9pre64
THNX....
All Replies (7)
Yes, that should work. If you place a copy of sessionstore.js back in the Firefox Profile Folder then you restore all the tabs, including APP tabs and Tab Groups (Panorama) that are saved in that file. Be sure to save the copy while Firefox isn't running. Otherwise you that a session that has a running flag and such a session is supposed to have crashed.
So, how do I get FF to check and display the sessionstore file? And is it emptied when I close FF without a crash. Is there an editor available to read that file more easier? Are there some command line switches to use to start FF that will force the restore of tabs, etc?
THNX...
Sessionstore.js is a file in JavaScript object format and not suitable at all for humans to read.
You can probably use JSONView (https://addons.mozilla.org/firefox/ad.../10869) to inspect the file.
Firefox also creates the file sessionstore.js if you confirm Save & Quit or have selected Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"
Hhmm... Would it work to set the properties of the sessionstore.js file to read only after I get it the way I want it? Would it make FF crash if it can not be written to or overwritten?
You will get problems if you make sessionstore.js read-only. Firefox want to create a new file every 10 seconds and you will end up very fast with countless numbered files sessionstore-##.js
If you want to start Firefox with some specific sites then you can also add them as URLs to the Target (command line) in the shortcut. The length of that field is limited and in that case you need to use a .cmd (or .bat) file with the start command to launch Firefox.
I did not think that command line would specify window size, location. Is there a way to use a .js file in the commandline such as "startup.js? Or is my best bet to use a batch file that copies startup.js to sessionstore.js and then fires up FF?
Thanks for your help....
You can use JavaScript code in the command line:
start "" "C:\Program Files\Mozilla Firefox\firefox.exe" -new-window "javascript:window.moveTo(0,0);window.resizeTo(800,450);location.href='http://www.google.com';" -new-window "javascript:window.moveTo(810,0);window.resizeTo(800,450);location.href='http://www.google.com/ncr';" -new-window "javascript:window.moveTo(0,480);window.resizeTo(800,450);location.href='http://www.google.fr';" -new-window "javascript:window.moveTo(810,480);window.resizeTo(800,450);location.href='http://www.google.co.uk';"
(needs to be one line)