Since the Firefox Menu Editor extension doesn’t get along with the new HTML5 context menu support in Firefox 8 and up (it prevents site-added entries from appearing with no option to allow them), I thought I’d whip up a few userstyles to get the same, more Chrome-like (useful, but cruft-free) context menu I normally have without sacrificing that feature.
Here are the ones I’ve written:
- Firefox – Un-cluttered, Chrome-like Context Menu
- StumbleUpon – Hide Context Menu Entries (Especially nice since they have eye-grabbing icons)
- gPrivacy – Hide non-contextual context menu entry
The one to clean out Firefox-native entries is especially important to me since Firefox devs seem to care more about moving the RSS icon out of the address bar (fix) and hiding behind their toolbar heatmaps than even doing a heatmap study on the context menu. I seriously doubt things like “Send Image…” get used often enough to be in the top level of a context menu without Chrome’s “one entry or submenu per extension” rule. (And why is “Select All” not shown only in text fields in this day and age?)
If you want to make your own, the process is very simple. Use mine as an example and then follow the instructions on Mozillazine’s Menu customization page.
If you want to remove something with a name that changes based on what you select or you want to “do it right” so your script works for everyone, rather than just people who share your locale, follow the “Using ID selectors” instructions rather than the “Using attribute selectors” ones. Finding the ID is a bit technical, but, here’s how I do it:
- locate your profile folder, then go into the
- One of those files or folders holds the code to the extension, so use your favorite archive tool to poke around until you find the right one. (
.zipfiles with a different extension, so use your favorite archive tool)
grep -r "text from the menu item" path/to/unpacked/xpior a grep-like tool to find the file and line number to start at. (If you get no results, try a smaller fragment)
- Go to that line number in that file using your favorite text editor. The ID should be nearby, either as