Merge pull request #1000 from KiKaraage/main

[Update] Zen Context Menu v2.0
This commit is contained in:
mr. m 2025-02-09 12:32:10 +01:00 committed by GitHub
commit 0ed15a7d1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 179 additions and 58 deletions

View file

@ -1,22 +1,48 @@
#unified-extensions-view box.panel-header, #unified-extensions-view box.panel-header,
#unified-extensions-description, #unified-extensions-description,
#unified-extensions-messages-container { #unified-extensions-messages-container,
.unified-extensions-item-message-deck {
display: none !important; display: none !important;
} }
#unified-extensions-view { #unified-extensions-view {
width: var(--menu-panel-width) !important; width: var(--menu-panel-width) !important;
} }
panelview .unified-extensions-item-action-button { panelview .unified-extensions-item-action-button {
padding-inline: 10px !important; padding-inline: 10px !important;
padding-block: 0px !important; padding-block: 0px !important;
} }
#unified-extensions-manage-extensions { #unified-extensions-manage-extensions {
padding-inline: 10px !important; padding-inline: 10px !important;
} }
#unified-extensions-panel .unified-extensions-item { #unified-extensions-panel .unified-extensions-item {
margin-block: 1px !important; margin-block: 2px !important;
}
#unified-extensions-view .unified-extensions-item-action-button:hover {
background-color: transparent !important;
}
#unified-extensions-view .unified-extensions-item-menu-button.subviewbutton,
.unified-extensions-item-row-wrapper {
padding: 0 !important;
}
#unified-extensions-view .unified-extensions-item-menu-button.subviewbutton > .toolbarbutton-icon {
opacity: 0 !important;
transition: 0.2s ease !important;
}
#unified-extensions-panel .unified-extensions-item:hover {
.unified-extensions-item-menu-button.subviewbutton > .toolbarbutton-icon {
opacity: 0.85 !important;
}
}
#unified-extensions-view .unified-extensions-item-action-button .panel-no-padding .webextension-browser-action {
padding: 0 !important;
}
#unified-extensions-view .toolbar-menupopup :is(menu, menuitem), .subview-subheader, panelview .toolbarbutton-1, .subviewbutton, .widget-overflow-list .toolbarbutton-1 {
max-height: 3em !important;
}
#unified-extensions-view .subviewbutton-iconic {
& > .toolbarbutton-icon {
width: 1.2em !important;
height: 1.2em !important;
padding: 0.7em !important;
}
} }

View file

@ -10,5 +10,5 @@
"version": "1.0.0", "version": "1.0.0",
"tags": [], "tags": [],
"createdAt": "2024-09-03", "createdAt": "2024-09-03",
"updatedAt": "2025-01-26" "updatedAt": "2025-02-08"
} }

View file

@ -1,4 +1,4 @@
/* Zen Context Menu v1.1 by KiKaraage */ /* Zen Context Menu v2.0 by KiKaraage */
/* Hide all separators */ /* Hide all separators */
@media (-moz-bool-pref: "uc.hidecontext.separators") { @media (-moz-bool-pref: "uc.hidecontext.separators") {
@ -9,7 +9,6 @@
padding-block: 0px !important; padding-block: 0px !important;
} }
} }
/* Hide all icons (Won't work for extension & checkbox context menu options) */ /* Hide all icons (Won't work for extension & checkbox context menu options) */
@media (-moz-bool-pref: "uc.hidecontext.optionicons") { @media (-moz-bool-pref: "uc.hidecontext.optionicons") {
:not(:not(menubar) > menu, #ContentSelectDropdown) :not(:not(menubar) > menu, #ContentSelectDropdown)
@ -63,7 +62,16 @@
background-image: none !important; background-image: none !important;
} }
} }
/* Apply Zen workspace colors to all context menu, panels, and confirmation pop-ups */
@media (-moz-bool-pref: "uc.fixcontext.applyzencolors") {
menupopup, panel {
--panel-background: var(--zen-main-browser-background) !important;
}
/* Fix text color on confirmation pop-ups when applying Zen colors on light mode */
#confirmation-hint {
--arrowpanel-color: var(--sidebar-text-color) !important;
}
}
@media (-moz-bool-pref: "uc.fixcontext.extensionmargins") { @media (-moz-bool-pref: "uc.fixcontext.extensionmargins") {
/* Fix padding for extensions-related context menu on Windows */ /* Fix padding for extensions-related context menu on Windows */
menu > .menu-iconic-text, menu > .menu-iconic-text,
@ -102,11 +110,19 @@
} }
} }
} }
/* Only use “Copy Link Without Site Tracking” */ /* Only use “Copy Link Without Site Tracking” */
@media (-moz-bool-pref: "uc.hidecontext.copylink") { @media (-moz-bool-pref: "uc.hidecontext.copylink") {
#context-copylink { #context-copylink {
display: none !important; opacity: 0 !important;
padding: 0 !important;
height: 2px !important;
}
#context-copylink:hover {
opacity: 1 !important;
padding-block: 0.5em !important;
padding-inline-start: calc( var(--fp-contextmenu-menuitem-padding-inline) + 16px + var(--fp-contextmenu-menuicon-margin-inline) ) !important;
height: inherit !important;
} }
} }
/* Hide "Menu Bar" toggle */ /* Hide "Menu Bar" toggle */
@ -126,13 +142,24 @@
} }
/* Hide "Mute Tab" option */ /* Hide "Mute Tab" option */
@media (-moz-bool-pref: "uc.hidecontext.mutetab") { @media (-moz-bool-pref: "uc.hidecontext.mutetab") {
#context_toggleMuteTab { #context_toggleMuteTab,
#context_toggleMuteSelectedTabs,
#context_playTab,
#context_playSelectedTabs {
display: none !important; display: none !important;
} }
} }
/* Hide "New Tab" option */ /* Hide "New Tab" options */
@media (-moz-bool-pref: "uc.hidecontext.newtab") { @media (-moz-bool-pref: "uc.hidecontext.newtab") {
#context_openANewTab { #context_openANewTab,
#toolbar-context-openANewTab,
#toolbarNavigatorItemsMenuSeparator {
display: none !important;
}
}
/* Hide 'Add to Web Panel' option" */
@media (-moz-bool-pref: "uc.hidecontext.addtowebpanel") {
#context-zenAddToWebPanel {
display: none !important; display: none !important;
} }
} }
@ -201,22 +228,29 @@
display: none !important; display: none !important;
} }
} }
/* Hide "Check Spelling" option while typing in text fields */ /* Hide "Check Spelling" and "Text/Page Direction" option while typing in text fields */
@media (-moz-bool-pref: "uc.hidecontext.checkspelling") { @media (-moz-bool-pref: "uc.hidecontext.checkspelling") {
#spell-separator,
#spell-check-enabled, #spell-check-enabled,
#context-sep-bidi { #spell-add-dictionaries-main,
#spell-dictionaries,
#context-sep-bidi,
#context-bidi-text-direction-toggle,
#context-bidi-page-direction-toggle {
display: none !important; display: none !important;
} }
} }
/* Hide “Select All Text” option */ /* Hide “Select All Text” option */
@media (-moz-bool-pref: "uc.hidecontext.selectalltext") { @media (-moz-bool-pref: "uc.hidecontext.selectalltext") {
#context-selectall { #context-selectall,
#context-sep-selectall {
display: none !important; display: none !important;
} }
} }
/* Hide “Select All Tabs" option */ /* Hide “Select All Tabs" option */
@media (-moz-bool-pref: "uc.hidecontext.selectalltabs") { @media (-moz-bool-pref: "uc.hidecontext.selectalltabs") {
#context_selectAllTabs, #context_selectAllTabs,
#context_selectedAllTabs,
#toolbar-context-selectAllTabs { #toolbar-context-selectAllTabs {
display: none !important; display: none !important;
} }
@ -224,6 +258,7 @@
/* Hide “Reload Tab” option */ /* Hide “Reload Tab” option */
@media (-moz-bool-pref: "uc.hidecontext.reloadtab") { @media (-moz-bool-pref: "uc.hidecontext.reloadtab") {
#context_reloadTab, #context_reloadTab,
#context_reloadSelectedTabs,
#toolbar-context-reloadSelectedTab, #toolbar-context-reloadSelectedTab,
#toolbar-context-reloadSelectedTabs { #toolbar-context-reloadSelectedTabs {
display: none !important; display: none !important;
@ -231,7 +266,8 @@
} }
/* Hide "Duplicate Tab" */ /* Hide "Duplicate Tab" */
@media (-moz-bool-pref: "uc.hidecontext.duplicatetab") { @media (-moz-bool-pref: "uc.hidecontext.duplicatetab") {
#context_duplicateTab { #context_duplicateTab,
#context_duplicateTabs {
display: none !important; display: none !important;
} }
} }
@ -241,17 +277,20 @@
display: none !important; display: none !important;
} }
} }
/* Hide “View Page Source” and “Inspect” options */ /* Hide “View Page Source”, "View Selection Source" and “Inspect” options */
@media (-moz-bool-pref: "uc.hidecontext.inspect") { @media (-moz-bool-pref: "uc.hidecontext.inspect") {
#context-viewsource, #context-viewsource,
#context-inspect-a11y, #context-inspect-a11y,
#context-inspect, #context-inspect,
#context-media-eme-separator { #inspect-separator,
#context-media-eme-separator,
#context-viewpartialsource-selection {
display: none !important; display: none !important;
} }
} }
/* Hide “Save Link As” */ /* Hide “Save Page As and Save Link As” */
@media (-moz-bool-pref: "uc.hidecontext.savelink") { @media (-moz-bool-pref: "uc.hidecontext.savelink") {
#context-savepage,
#context-savelink { #context-savelink {
display: none !important; display: none !important;
} }
@ -264,3 +303,20 @@
display: none !important; display: none !important;
} }
} }
/* Hide "Pin Tab" and "Add to Essentials" options */
@media (-moz-bool-pref: "uc.hidecontext.pin") {
#context_pinTab,
#context_unpinTab,
#context_pinSelectedTabs,
#context_unpinSelectedTabs,
#context_zen-add-essential,
#context_zen-remove-essential {
display: none !important;
}
}
/* Hide "This Frame" option */
@media (-moz-bool-pref: "uc.hidecontext.frame") {
#frame-sep, #frame {
display: none !important;
}
}

View file

@ -1,4 +1,13 @@
[ [
{
"property": "widget.macos.native-context-menus",
"label": "Enable this mod on macOS (Let Zen override native macOS context menu)",
"type": "checkbox",
"disabledOn": [
"windows",
"linux"
]
},
{ {
"property": "uc.hidecontext.separators", "property": "uc.hidecontext.separators",
"label": "Hide all separators", "label": "Hide all separators",
@ -9,9 +18,14 @@
"label": "Hide all icons (won't work for extension and checkbox context menu options)", "label": "Hide all icons (won't work for extension and checkbox context menu options)",
"type": "checkbox" "type": "checkbox"
}, },
{
"property": "uc.fixcontext.applyzencolors",
"label": "Apply Zen workspace colors to all context menu, panels, and confirmation pop-ups",
"type": "checkbox"
},
{ {
"property": "uc.fixcontext.extensionmargins", "property": "uc.fixcontext.extensionmargins",
"label": "Fix margin for 'Tabs on the right' checkbox and extensions-related context menu", "label": "[Toolbar] Fix margin for 'Tabs on the right' checkbox and extensions-related context menu",
"type": "checkbox", "type": "checkbox",
"disabledOn": [ "disabledOn": [
"macos", "macos",
@ -20,112 +34,132 @@
}, },
{ {
"property": "uc.hidecontext.copylink", "property": "uc.hidecontext.copylink",
"label": "Only use 'Copy Link Without Site Tracking'", "label": "[Link] Hide regular 'Copy Link' button (Only shown when hovering above 'Copy Clean Link')",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.menubar", "property": "uc.hidecontext.menubar",
"label": "Hide 'Menu Bar' toggle", "label": "[Toolbar] Hide 'Menu Bar' toggle",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.bookmark", "property": "uc.hidecontext.bookmark",
"label": "Hide 'Bookmark Tab/Link'", "label": "[Tab] [Link] Hide 'Bookmark Tab/Link'",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.mutetab", "property": "uc.hidecontext.mutetab",
"label": "Hide 'Mute Tab' option", "label": "[Tab] Hide 'Mute Tab' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.newtab", "property": "uc.hidecontext.newtab",
"label": "Hide 'New Tab' option", "label": "[Tab] Hide 'New Tab' option",
"type": "checkbox"
},
{
"property": "uc.hidecontext.addtowebpanel",
"label": "[Link] Hide 'Add to Web Panel' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.movetaboptions", "property": "uc.hidecontext.movetaboptions",
"label": "Hide 'Move Tab' options", "label": "[Tab] Hide 'Move Tab' options",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.newcontainer", "property": "uc.hidecontext.newcontainer",
"label": "Hide 'Open Tab/Link in New Container Tab'", "label": "[Tab] [Link] Hide 'Open Tab/Link in New Container Tab'",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.sendtodevice", "property": "uc.hidecontext.sendtodevice",
"label": "Hide 'Send Tab/Link to Device'", "label": "[Tab] [Link] Hide 'Send Tab/Link to Device'",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.closetab", "property": "uc.hidecontext.closetab",
"label": "Hide close tab options (Close Tab, Close Duplicate Tabs, Close Multiple Tabs)", "label": "[Tab] Hide close tab options (Close Tab, Close Duplicate Tabs, Close Multiple Tabs)",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.search", "property": "uc.hidecontext.search",
"label": "Hide 'Search Keywords' with your preferred search engine", "label": "[Link] Hide 'Search Keywords' on your preferred search engine",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.searchinpriv", "property": "uc.hidecontext.searchinpriv",
"label": "Hide 'Search Keywords in a Private Window'", "label": "[Text] [Link] Hide 'Search Keywords in a Private Window'",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.translate", "property": "uc.hidecontext.translate",
"label": "Hide Firefox's 'Translate Selection/Link' options", "label": "[Text] [Link] Hide Firefox's 'Translate Selection/Link' options",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.printselection", "property": "uc.hidecontext.printselection",
"label": "Hide 'Print Selection'", "label": "[Text] Hide 'Print Selection'",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.image", "property": "uc.hidecontext.image",
"label": "Hide 'Email Image', 'Set Image as Desktop Background', and 'View Image Info' options", "label": "[Image] Hide 'Email Image', 'Set Image as Desktop Background', and 'View Image Info' options",
"type": "checkbox"
},
{
"property": "uc.hidecontext.checkspelling",
"label": "[Text] Hide 'Check Spelling' and 'Change Text/Page Direction' options while typing in text fields",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.selectalltext", "property": "uc.hidecontext.selectalltext",
"label": "Hide 'Select All Text' option", "label": "[Page] [Text] Hide 'Select All Text' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.selectalltabs", "property": "uc.hidecontext.selectalltabs",
"label": "Hide 'Select All Tabs' option", "label": "[Tab] Hide 'Select All Tabs' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.reloadtab", "property": "uc.hidecontext.reloadtab",
"label": "Hide 'Reload Tab' option", "label": "[Tab] Hide 'Reload Tab' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.duplicatetab", "property": "uc.hidecontext.duplicatetab",
"label": "Hide 'Duplicate Tab' option", "label": "[Tab] Hide 'Duplicate Tab' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.unloadactions", "property": "uc.hidecontext.unloadactions",
"label": "Hide 'Tab Unloader Actions'", "label": "[Tab] Hide 'Tab Unloader Actions'",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.inspect", "property": "uc.hidecontext.inspect",
"label": "Hide 'View Page Source' and 'Inspect' options", "label": "[Text] [Page] Hide 'View Page Source' and 'Inspect' options",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.savelink", "property": "uc.hidecontext.savelink",
"label": "Hide 'Save Link As'", "label": "[Page] [Link] Hide 'Save Page As' and 'Save Link As' option",
"type": "checkbox" "type": "checkbox"
}, },
{ {
"property": "uc.hidecontext.screenshot", "property": "uc.hidecontext.screenshot",
"label": "Hide 'Take Screenshot' option", "label": "[Page] Hide 'Take Screenshot' option",
"type": "checkbox"
},
{
"property": "uc.hidecontext.pin",
"label": "[Page] Hide 'Pin Tab' and 'Add to Essentials' option",
"type": "checkbox"
},
{
"property": "uc.hidecontext.frame",
"label": "[Image] Hide 'This Frame' options",
"type": "checkbox" "type": "checkbox"
} }
] ]

View file

@ -1,29 +1,34 @@
What can you do with this Mod: What can you do with this Mod:
- Hide all separators in context menu _**NEW!**_ - Hide all separators in context menu
- Hide all icons, excluding checkboxes & extension context menu _**NEW!**_ - Hide all icons, excluding checkboxes & extension context menu
- Fix margins for checkboxes & extension context menu on Windows, including "Tabs on the right" and "Compact Mode" options _**NEW!**_ - Apply your Zen workspace colors to all context menu, tab previews, and small notification pop-ups _**NEW!**_
- Only use “Copy Link Without Site Tracking” - Fix margins for checkboxes & extension context menu on Windows, including "Tabs on the right" and "Compact Mode" options
- Prioritizing "Copy Clean Link", hide default Copy Link option unless a small trigger area is hovered
- Hide "Menu Bar" toggle - Hide "Menu Bar" toggle
- Hide "Bookmark Tab/Link” - Hide "Bookmark Tab/Link”
- Hide "New Tab" option _**NEW!**_ - Hide "New Tab" options
- Hide "Move Tab" options _**NEW!**_ - Hide "Move Tab" options
- Hide “Open Tab/Link in New Container Tab” - Hide “Open Tab/Link in New Container Tab”
- Hide “Send Tab/Link to Device” - Hide “Send Tab/Link to Device”
- Hide close tab options ("Close Tab", "Close Duplicate Tabs", "Close Multiple Tabs") _**NEW!**_ - Hide close tab options ("Close Tab", "Close Duplicate Tabs", "Close Multiple Tabs")
- Hide “Search Keywords" with your preferred search engine - Hide “Search Keywords" with your preferred search engine
- Hide “Search Keywords in a Private Window” - Hide “Search Keywords in a Private Window”
- Hide Firefox's "Translate Selection/Link" options - Hide Firefox's "Translate Selection/Link" options
- Hide "Print Selection" _**NEW!**_ - Hide "Print Selection"
- Hide “Email Image”, “Set Image as Desktop Background”, and “View Image Info” options - Hide “Email Image”, “Set Image as Desktop Background”, and “View Image Info” options
- Hide "Check Spelling" and "Text/Page Direction" option while typing in text fields _**NEW!**_
- Hide “Select All Text” option - Hide “Select All Text” option
- Hide “Select All Tabs” option - Hide “Select All Tabs” option
- Hide “Reload Tab” option - Hide “Reload Tab” option
- Hide "Duplicate Tab" option _**NEW!**_ - Hide "Duplicate Tab" option
- Hide “Tab Unloader Actions” - Hide “Tab Unloader Actions”
- Hide “View Page Source” and “Inspect” options - Hide “View Page Source” and “Inspect” options
- Hide “Save Link As” - Hide “Save Link As”
- Hide “Take Screenshot” option - Hide “Take Screenshot” option
- Hide "Add to Web Panels" _**NEW!**_
- Hide "Pin Tab" and "Add to Essentials" _**NEW!**_
- Hide "This Frame" options on image context menu _**NEW!**_
Go to Settings, Zen Mods, look up "Zen Context Menu", click the gear ⚙️ button, and check your desired preferences. Go to Settings, Zen Mods, look up "Zen Context Menu", click the gear ⚙️ button, and check your desired preferences.

View file

@ -7,11 +7,11 @@
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/81fcd6b3-f014-4796-988f-6c3cb3874db8/readme.md", "readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/81fcd6b3-f014-4796-988f-6c3cb3874db8/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/81fcd6b3-f014-4796-988f-6c3cb3874db8/image.png", "image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/81fcd6b3-f014-4796-988f-6c3cb3874db8/image.png",
"author": "KiKaraage", "author": "KiKaraage",
"version": "1.1.4", "version": "2.0",
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/81fcd6b3-f014-4796-988f-6c3cb3874db8/preferences.json", "preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/81fcd6b3-f014-4796-988f-6c3cb3874db8/preferences.json",
"tags": [ "tags": [
"context menu" "context menu"
], ],
"createdAt": "2024-10-06", "createdAt": "2024-10-06",
"updatedAt": "2025-01-26" "updatedAt": "2025-02-08"
} }

View file

@ -10,5 +10,5 @@
"version": "1.1.0", "version": "1.1.0",
"tags": [], "tags": [],
"createdAt": "2024-12-20", "createdAt": "2024-12-20",
"updatedAt": "2025-02-01" "updatedAt": "2025-02-04"
} }