Last active
November 11, 2023 12:40
-
-
Save salopst/b2a782ab4b541a8ed5be19a692c68951 to your computer and use it in GitHub Desktop.
remove entries form Firefox "right-click" menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/*** | |
2023-11-11T12:01:53 | |
Trying to prevent right-click fuckery | |
## An aside on Firefox right-click menu | |
- about:config in addr bar | |
- change `toolkit.legacyUserProfileCustomizations.stylesheets` to "true" | |
- change `extensions.pocket.enabled` to "false" | |
- about:support and locate the "Profile Direcory". For me on the t460 this is: | |
/home/salopst/.mozilla/firefox/7andihr1.default-release | |
- I did not have a userChrome.css file, so: | |
`touch /home/salopst/.mozilla/firefox/7andihr1.default-release/chrome/userChrome.css` | |
*NB* the addition of the `chrome` subirectory, which does not exist usually. | |
- about:profiles in addr bar to confirm one is using the correct profile | |
Some selectors: | |
- https://www.reddit.com/r/firefox/comments/9eteoj/help_how_to_edit_context_menu/ | |
- https://pastebin.com/sPXP5KLM | |
***/ | |
/* is anything working? YES it is | |
.urlbar-input-box { | |
font-size:10pt!important; | |
font-family:"DejaVu Sans Mono"; | |
border-color: coral;} | |
*/ | |
/*** Remove items from context menu ***/ | |
#context-sendimage { display: none !important; } | |
#context-sendpage { display: none !important; } | |
#context-savelinktopocket { display: none !important; } | |
#context-savelink { display: none !important; } | |
#context-pocket { display: none !important; } | |
#context-bookmarklink { display: none !important; } | |
#context-setDesktopBackground { display: none !important; } | |
#context-viewbgimage { display: none !important; } | |
#context-sep-viewbgimage { display: none !important; } | |
#context-openlinkprivate { display: none !important; } | |
#context-printselection { display: none !important; } | |
#context-takescreenshot { display: none !important; } | |
#context-bookmarkpage { display: none !important; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment