Remove "Sort By Name" from your Firefox context menu
Earlier this month, I posted an entry complaining about how the context menu items "Reload Live Bookmark" and "Sort By Name" are too close to each other. After mistakenly sorting my Bookmarks Toolbar Folder yet again, I finally found a way to do something about it.
Disclaimer: Follow these instructions at your own risk. You may break your browser. Although I did not find an extension to do this, I'm pretty sure that using one would be a better approach than the one I'm taking here. If you are as annoyed as I was about this, then please, read on.
I couldn't find an extension for this, and I didn't dig too deep into the developers documentation, but I did find something in the chrome/browser.jar file. In order to remove the option you need to edit a file in that archive.
Hopefully this will be the last time I accidentally re-sort my Bookmarks Toolbar Folder.
Disclaimer: Follow these instructions at your own risk. You may break your browser. Although I did not find an extension to do this, I'm pretty sure that using one would be a better approach than the one I'm taking here. If you are as annoyed as I was about this, then please, read on.
I couldn't find an extension for this, and I didn't dig too deep into the developers documentation, but I did find something in the chrome/browser.jar file. In order to remove the option you need to edit a file in that archive.
- Backup the file browser.jar before starting. You may screw something up and have to start over. You should find it in the chrome folder, found under the Firefox install directory.
- Unzip browser.jar to a temporary folder. This file is an uncompressed archive that you can open using a utility like WinZip.
- Find the file content/browser/bookmarks/bookmarks.js in the directory structure you just created from the archive. You'll want to edit this file.
- Find the case statement referring to the context menu for an item of type "Livemark". Search for the following text:
case "Livemark":
It should start on line 308 or thereabouts. - On the next line, you'll see a list of commands. Find the text "bm_sortbyname", (complete with quotes and the trailing comma). Remove it and save the file.
- Re-create browser.jar by creating a ZIP file from your directory structure. Make sure not to use compression with the archive. After creating the ZIP file, rename it to browser.jar and copy it to chrome directory.
Hopefully this will be the last time I accidentally re-sort my Bookmarks Toolbar Folder.
Labels: bookmarks toolbar, firefox, sort by name
13 Comments:
Hey man, I tried but it didnt work. When opening the browser it was just a white screen. Is this written for Firefox 1.5.0.3?
SOmeone should make a firefox extension for this or something. That Sort by Name thingy is annoying!
I originally did this with version 1.5.0.2, but have since upgraded. The upgrade reset the menu, but I followed the above steps and was able to do it again. It does work with 1.5.0.3.
My first thoughts are that you may have created a compressed ZIP file. Is the new browser.jar the same size as your backup? It should be.
Could it be that you didn't save the relative path information in the new JAR?
Thanks, that worked like a charm. I think I found Sort by Name almost as annoying as you did ;)
oh, btw the new jar is 1KB larger than the old one (1079 vs 1078 KB), but everything seems to work ok. did it on 1.5.0.4
This hack doesn't seem to work in Firefox 2. Is there an updated method?
I'm using Firefox 2.0 and this hack works just fine -- thanks! I swear I was accidentally sorting my bookmarks toolbar once a day.
This is an older thread but it is #1 in Google for 'sort firefox context menu' so I'll give it a shot. It sounds like this thread is referring to the right-click menu on the toolbar. I would like to know how to sort the right-click menu when clicking on a webpage. Can it be done? Thanks! Steve Best Consignment Shop Software
This comment has been removed by the author.
Nice edit! I've sorted my RSS-feeds too many times..no more!
Use this add on to reload all your tabs at once without clicking each one individually.
Should help your problem.
https://addons.mozilla.org/en-US/firefox/addon/2081
I had the exact issue you did, and your solution worked perfectly. Thanks :)
Hi, this problem has been bugging me for a long time - I've lost count of the number of times I've accidentally sorted my RSS bookmarks whilst trying to reload them. Your page was the top result in Google.. and I can see why. Worked perfectly in FF2.0.0.14. Let's hope it works in FF3 later this month :)
Thanks - works perfectly!
Post a Comment
<< Home