From 86777298d88d1d861ebe608b20500e1f46daea12 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Sat, 6 Nov 2021 17:57:47 +0100 Subject: [PATCH] Beautified FF's userChrome.css and hidden undesirable context menu items --- .../firefox/userprofile/chrome/userChrome.css | 70 ++++++++++++++----- 1 file changed, 52 insertions(+), 18 deletions(-) diff --git a/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css b/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css index ede931a..4eb6dc3 100644 --- a/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css +++ b/firefox/.mozilla/firefox/userprofile/chrome/userChrome.css @@ -1,33 +1,67 @@ +/*AGENT_SHEET*/ +#urlbar, +#navigator-toolbox #searchbar { + border: none !important; +} -#urlbar, #navigator-toolbox #searchbar {border: none !important;} - -.titlebar-buttonbox-container, .titlebar-spacer { - display: none !important; +.titlebar-buttonbox-container, +.titlebar-spacer { + display: none !important; } #navigator-toolbox { - border: none !important; + border: none !important; } - toolbox { - margin-top: 0px !important; - margin-bottom: -34px !important; - height: 0 !important; - pointer-events: none; + margin-top: 0px !important; + margin-bottom: -34px !important; + height: 0 !important; + pointer-events: none; } -vbox {pointer-events: all;} +vbox { + pointer-events: all; +} #nav-bar { - z-index: 10; - opacity: 0; - pointer-events: none; - transition: transform, ease-in-out 0.2s, opacity 0.2s ease-in-out !important; + z-index: 10; + opacity: 0; + pointer-events: none; + transition: transform, ease-in-out 0.2s, opacity 0.2s ease-in-out !important; } + /* All the states in which the URL bar is visible */ -vbox:hover ~ #nav-bar, toolbox:focus-within > #nav-bar, #nav-bar:hover, #mainPopupSet:hover ~ box #nav-bar, #mainPopupSet:focus-within ~ box #nav-bar { - opacity: 1; - pointer-events: all; + +vbox:hover~#nav-bar, +toolbox:focus-within>#nav-bar, +#nav-bar:hover, +#mainPopupSet:hover~box #nav-bar, +#mainPopupSet:focus-within~box #nav-bar { + opacity: 1; + pointer-events: all; } + +/* Hide undesirable default context menu items */ +/* Source: https://github.com/stonecrusher/simpleMenuWizard */ + +#context-sendaudio, /* Email Audio */ +#context-sendvideo, /* Email Video */ +#context-sendimage, /* Email Image */ +#context-sendpagetodevice, +#context-sep-sendpagetodevice, +#context-sendlinktodevice, +#context-sep-sendlinktodevice, +#context_sendTabToDevice, +#context_sendTabToDevice_separator, +#context-print-selection, /* Print Selection */ +#context-searchselect, /* Search [Google] for "[selected]" */ +#context-inspect-a11y, /* Inspect Accessibility Properties */ +#context-bookmarklink, /* Bookmark Link */ + +#pageAction-panel-sendToDevice, +#pageAction-panel-emailLink, /* Email Link */ + +#leave_this_dummy_here + { display: none !important; }