Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

want to save url's of currently open pages in a window--cf firefox start using current pages

  • 5 replies
  • 3 have this problem
  • 39 views
  • Last reply by cor-el

more options

In tools/options/general, you can use the currently open pages as your start page. I want to SAVE this sort of list (in a Word file) so that I can re-open them in a new window at a latter date.

Why? I tend to start a project in a window, finding a number of web pages which I want to come back to. So I end up with many open windows. Eventually Firefox crashes. I've tried searching history, bur it's hard to spot the relevant pages.

All Replies (5)

more options

To use Word you could copy and paste the URL for each tab to Word and then save that Word file as HTML. Then you can open those URLs within Firefox when viewing that HTML Word file by using File > Open File ...

Overall it might be more efficient saving all the URLs as bookmarks in one bookmarks folder in one "stroke". Right-click a Tab and use Bookmark All Tabs... - save that folder of bookmarks as long as you need those URLs / web pages. To open that folder of bookmarks in separate tabs altogether, right-click the folder and use Open All in Tabs...

more options

Almost  !! this works nicely>> Right-click a Tab and use Bookmark All Tabs... - save that folder of bookmarks as long as you need those URLs / web pages <<

Now the question is how to get at the undelying URL's. Can't figure out how to copy and paste. Moving to a Word or text file is what I'm trying to do--there I could add notes, etc.

Thanks--

more options

Out of curiosity, why the "Word" or text file? Seems that a file type like HTML which will display click-able hyperlinks inside any web browser would be more appropriate considering this is about storing and later retrieving web addresses.

Right-click each bookmark and open Properties. Copy the "Location" field and paste that into Word or a text program.

more options

Hi David, once you have bookmarked the pages, consider exporting your bookmarks to an HTML format file. You can save it in a convenient location such as your desktop, and either:

  • open the file in Firefox and select > copy the relevant part of the list to Word (the URLs are coded as links, so Word has a better chance of getting the full information than a program like Notepad that doesn't understand hyperlinks)
  • open the file directly into Word and select > copy to your final document (or edit out the parts you don't care to keep)
  • just keep the file in HTML format and use the links when needed

How to export: Export Firefox bookmarks to an HTML file to back up or transfer bookmarks

more options

You can generate a list of the URLs of all open tabs in a window with this JavaScript.

You can open the Browser Console (Firefox/Tools > Web Developer). Paste the JavaScript code in the command line and press the Enter key to run the code.

var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator);
var gB = wm.getMostRecentWindow("navigator:browser").gBrowser;
var url = gB.selectedBrowser.contentDocument.location.href;

var l = gB.mPanelContainer.childNodes.length,i,t=[];
for(var i=0;i<l;i++){t.push(gB.getBrowserAtIndex(i).contentDocument.location.href);}

var dataURI = "data:text/html;charset=utf-8,<html><body>"+t.join("<br>\n")+"</body></html>";
var tab = gB.addTab(dataURI);
gB.selectedTab = tab;

You can also look at the sessionstore.js file or the files in the sessionstore-backups to extract links of currently open tabs.

You can look at this post in this MozillaZine forum thread about inspecting a sessionstore file and possibly extract URLs.