Home » Featured, Hacking, How to Recipies, Internet Browser » Advance Tweaking: Firefox Menus

Advance Tweaking: Firefox Menus

Last time we see how to tweak Firefox Context Menu to Hide menu items from  right click context menu. Today we will go a little further with that and will see some more advance tweaks that we can use to tweak/optimize firefox or at least use use to make your Geek friend crack Nuts.

In last post we have used ID’s to hide menus, but it seems really difficult and time consuming as we have to look upon ID of every menu item we want to hide/modify, another option is to use labels.

You can tweak your menus using userChrome.css file. userChrome.css is a CSS file that can be used to change the way Mozilla Firefox interface look. But to edit it you need to locate it first.

For Windows XP users:

C:\Documents and Settings\\Application Data\Mozilla\Firefox\Profiles\

For Windows Vista and Seven Users:

C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\

Note: In the above two locations you will find userChrome-example.css file, you don’t have to modify it, you need to create a new file there called userChrome.css and than have to edit it.

Or

1. Press WIN + R and type %Appdata%
2. Then navigate to Mozilla\Firefox\Profiles\********.default\chrome
3. Here create a file named “userChrome.css”

The easiest way to hide a menu item is using the Label attribute.

For example, if you want to hide the “View Page Source” menu item from the right click context menu than use

menuitem[label="View Page Source"] {display: none !important; }

How to Hide Menu Bar completely?

#toolbar-menubar { display: none !important; }

Hide selected browser menus

#navigator-toolbox menu[label="File"],
#navigator-toolbox menu[label="Edit"],
#navigator-toolbox menu[label="View"],
#navigator-toolbox menu[label="Go"],
#navigator-toolbox menu[label="Bookmarks"],
#navigator-toolbox menu[label="Tools"],
#navigator-toolbox menu[label="Help"]

{ display: none !important; }

Remove Items From Right Click Context Menu

context Menu

#context-back,
#context-forward,
#context-reload,
#context-stop,
#context-sep-stop
{ display: none !important; }

After applying this code

new context menu

In the Next Tutorial we will see some more advanced concepts of customizing userChrome.css file to make your Firefox do what you want.

So are you enjoying tweaking sessions of Firefox?







Popular on Web Today

9 Responses to " Advance Tweaking: Firefox Menus "

  1. MostlyBlog says:

    good post,btw rt done
    .-= MostlyBlog´s last blog ..Nokia N97 Mini Gold Edition Announced by Nokia =-.

  2. Cool trick mate! :D thanks for sharing :D
    .-= Pubudu Kodikara´s last blog ..Hacker’s Fun : Cool YouTube Videos =-.

  3. Suhasini says:

    This kind if feature I was looking for in Firefox but would again say needs bit of effort as I said in my last comment too. A very nice post.
    .-= Suhasini´s last blog ..Google Analytics Will be Down Starting March 2, 2010 from 7 AM to 11 PM(Pacific Time) =-.

  4. NavaPavan says:

    Cool tweaks. Let me apply and check out the result

  5. sol thomp says:

    Firefox has some great plug ins internet explorer need to step up big time!

  6. honda says:

    how to add some menu in

  7. Плагины Для Firefox says:

    Hi there. Great post! I have a question: How can I find this folder C:\Users\\AppData\Roaming\Mozilla\Firefox\Profiles\ if I haven’t administrator permission?

  8. David says:

    Is there a way to get all the classes and options? Is there an original file per se? I feel like I’m barely seeing half the options and would love to be able to edit more. Thanks!

  9. David says:

    PS
    I found my userchrome.css file in:
    C:\IUWORK\630007E\localized\defaults\profile\chrome

    So maybe you could suggest that if they can’t find it in the original path you suggest, search their HD for “userchrome-example”? Cheers!

Leave a comment