Results 1 to 1 of 1

Thread: How to make Firefox bookmark Manager open in a tab instead of new window.

  1. #1
    Join Date
    Nov 2005
    Location
    Little Weighton, Hull, UK
    Beans
    1,057

    How to make Firefox bookmark Manager open in a tab instead of new window.

    I was wandering around Mozilla Forums today, as you do, and came across this one. It's not all that new, but if,as I do, you have a dislike to new windows opening everywhere, and choose not to use Opera, then this may be for you.

    The goal is to be able to organise bookmarks from a tab, rather than opening a new window. To do this involves installing an extension, called userChrome.js which gives you more control over the javascript firefox runs. You can install it here. There is also a VERY long thread here that goes into all sorts of other little things that can be done with it, but for the purposes of this brief guide we're really only interested in one.

    Once the extension is installed, find your firefox profile folder. This is generally in a hidden folder in your home directory,called ~/.mozilla/firefox/XXXXXX.default where XXXXXX represents some ridiculously long random id.

    Anyway, inside that folder, enter the chrome folder. If you do not see a file called userChrome.js then create one with your favourite text editor.

    Into that file, you need to put:

    Code:
    // JavaScript Document 
     
     /* Bookmark Manager open in Tab */ 
     document.getElementsByAttribute("key", "manBookmarkKb")[0].setAttribute("oncommand", '(getBrowser().selectedTab = getBrowser().addTab("chrome://browser/content/bookmarks/bookmarksManager.xul")).label = "Bookmarks Manager";');
    ..and you're done. Restart firefox, and from your bookmarks menu, click organise bookmarks, and with a little luck...presto!

    You can use a similar approach with the download manager and History Show in Tabs with the code below, but personally, I don't find those two nearly as handy.
    Code:
    /* Download Manager open in Tab */ 
     document.getElementById("Tools:Downloads").setAttribute("oncommand", '(getBrowser().selectedTab = getBrowser().addTab("chrome://mozapps/content/downloads/downloads.xul")).label = "Download Manager";'); 
      
     /* History Manager open in Tab */ 
     document.getElementById("viewHistorySidebar").setAttribute("oncommand", '(getBrowser().selectedTab = getBrowser().addTab("chrome://browser/content/history/history-panel.xul")).label = "History Manager";');
    If you change your mind, simply uninstall the extension, and you may have to manually remove userChrome.js, then just restart your browser.

    This will also work in Swiftfox btw. Have fun.


    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot-Bookmarks Manager - Swiftfox-2.png 
Views:	354 
Size:	141.3 KB 
ID:	27831  
    Last edited by adam.tropics; March 19th, 2007 at 02:47 PM.
    ~~ Ubuntu Forums Firefox/Flock Menu ~~ Ubuntu User Number 206 ~~ Linux user number 403379 ~~

    ~~ If someone asks you to sudo rm -rf anything don't do it. ~~

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •