Posted by mmsc 4 hours ago
Unfortunately that one is not removable through about:config.
px is the CSS unit, device pixels aren't.
[1] https://addons.mozilla.org/en-US/firefox/addon/popup-tooltip...
Huh, beside Google Maps, that's what the default context menu does in Firefox?
1. In about:config, turn pref toolkit.legacyUserProfileCustomizations.stylesheets on.
2. Create chrome/userChrome.css in your profile directory (which you can find from about:support).
3. Open the Browser Toolbox with Ctrl+Alt+Shift+I or ≡ → More tools → Browser Toolbox or Tools → Browser Tools → Browser Toolbox or some such thing. This is dev tools for the browser.
4. In the Inspector tab, search #contentAreaContextMenu to navigate to the <menupopup id="contentAreaContextMenu" …> element.
5. Look through its children. Decide which ones you don’t want, then kill them in CSS.
From my userChrome.css (I think this must be something like a decade old because I started typing curly quotes somewhere around then):
/* I don't want *two* items for Inspect, just the one main one please. */
#context-inspect-a11y,
/* I'm happy to use Ctrl+Shift+S; I don't need a context menu item for it. */
#context-take-screenshot,
#context-sep-screenshots,
/* I don't use Firefox's password manager. */
#fill-login,
#fill-login-generated-password,
#manage-saved-logins,
#passwordmgr-items-separator {
display: none;
}
The article takes the approach of disabling features (e.g. devtools.accessibility.enabled). I take the approach of leaving the features enabled (I want the accessibility stuff!) and just removing the specific context menu item that I found annoying.(… and I see at the end of the article that this approach is what the next post is to be about. Heh. Posted before reading to the end. Probably would still have posted roughly the same thing.)