/* Zen Mods - Generated by ZenMods. * FILE GENERATED AT: Sunday, September 6, 2026 at 7:25:43 PM Hong Kong Standard Time * DO NOT EDIT THIS FILE DIRECTLY! * Your changes will be overwritten. * Instead, go to the preferences and edit the mods there. */ /* Name: Zen Context Menu */ /* Description: Declutter your right click menu, hide options you don't need */ /* Author: @KiKaraage */ /* Zen Context Menu v3.1 by KiKaraage */ /* Fix ergonomics for tab context menu by applying some reorderings * plus hiding disabled options and some separators * Applied by default when enabling Zen Context Menu mod */ @media -moz-pref("uc.fixcontext.ergonomicsfortabs") { #tabContextMenu { :nth-child(22), /* Separator below "Duplicate Tab" */ #context_bookmarkTab, #context_bookmarkSelectedTabs, #context_moveTabOptions, #context_selectAllTabs, :nth-child(31), /* Separator below "Select All Tabs" */ #context_selectedAllTabs, #toolbar-context-selectAllTabs, #context_closeTabOptions, :nth-child(37), /* Separator below "Split Tabs" */ #context_zen-pinned-tab-separator, /* Separator above Replace Pinned URL */ #context_zenSplitTabs[label="Split Tab (multiple selected tabs needed)"], #context_zenSplitTabs[disabled="true"], #context_closeDuplicateTabs[disabled]{ display: none; } #context_toggleMuteTab, #context_toggleMuteSelectedTabs, #context_zen-add-essential, #context_zen-remove-essential, #context_pinTab, #context_pinSelectedTabs, #context_unpinTab, #context_unpinSelectedTabs, #context_zenSplitTabs:not([disabled="true"]) { order: -8 !important; } #context_duplicateTab, #context_duplicateTabs, #context_unloadTab { order: -7 !important; } :nth-child(6), /* Separator below "New Folder" */ #zen-context-menu-new-folder { order: -6 !important; } #context_moveTabToGroup, #context_reopenInContainer, #context-zen-change-workspace-tab { order: -5 !important; } :nth-child(35), /* Separator below "Change Tabs to Workspace" */ #context_sendTabToDevice, #context_zenSplitTabs, #context_undoCloseTab { order: -3 !important; } #context_closeTab, #context_closeDuplicateTabs, #context_zen-reset-pinned-tab, #context_zen-replace-pinned-url-with-current { order: 2; } } } /* Hide all separators */ @media -moz-pref("uc.hidecontext.separators") { menuseparator::before { border-top: none !important; } menuseparator { padding-block: 0px !important; } } /* Hide all icons in context menu, except checkboxes and radio buttons, to fit current Zen styling */ @media -moz-pref("uc.hidecontext.icons") { :not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menuitem:not( .menuitem-iconic, [type='checkbox'], [type='radio'], .in-menulist, .in-menulist menuitem, .unified-nav-current ), :not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menu:not( .menu-iconic, [type='checkbox'], [type='radio'], .in-menulist, .in-menulist menu, .unified-nav-current ), :not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menucaption { padding-inline: 6px !important; } menupopup > menuitem:is([type='checkbox']) .menu-iconic-left { --menu-image: none !important; margin-inline-start: 4px !important; @media not (-moz-platform: windows) { margin-inline-end: 0 !important; padding-inline-end: 0 !important; } } .textbox-contextmenu, menupopup:has(menuitem[type="radio"], menuitem[type="checkbox"]), menu:has(menuitem[type="radio"], menuitem[type="checkbox"]) { .menu-icon { display: none !important; } menuitem[type="radio"], menuitem[type="checkbox"], #context-navigation { .menu-icon { display: inherit !important; } } } menupopup[needsgutter] { @media (-moz-platform: windows) { & > menu:not([icon], .menu-iconic), & > menuitem:not([checked="true"], [icon], .menuitem-iconic) { padding-inline-start: 12px !important; } } } } /* Apply Zen workspace gradient to all context menu and panels * Suitable if the OS, desktop environment or window manager supported blur background */ @media -moz-pref("uc.fixcontext.applyzengradient") { menupopup, panel { --panel-background: var(--zen-main-browser-background) !important; } /* Fix text color on Firefox confirmation pop-ups when applying Zen colors on light mode */ #confirmation-hint { --arrowpanel-color: var(--sidebar-text-color) !important; border: none !important; } } /* Apply Zen workspace accent color to all context menu and panels*/ @media -moz-pref("uc.fixcontext.applyzenaccent") { menupopup, panel { --panel-background: color-mix(in srgb, var(--zen-primary-color) 40%, var(--zen-colors-tertiary)) !important; } } /* Prioritize “Copy Clean Link" when available, otherwise, only show "Copy Link” */ @media -moz-pref("uc.hidecontext.copylink") { #contentAreaContextMenu:has(#context-stripOnShareLink[disabled="false"]) { #context-copylink { display: none !important; } } #context-stripOnShareLink[disabled="true"] { display: none !important; } } /* Hide "Bookmark Link” */ @media -moz-pref("uc.hidecontext.bookmark") { #toolbar-context-bookmarkSelectedTab, #toolbar-context-bookmarkSelectedTabs, #context-bookmarklink { display: none !important; } } /* Hide "Mute Tab" option */ @media -moz-pref("uc.hidecontext.mutetab") { #context_toggleMuteTab, #context_toggleMuteSelectedTabs, #context_playTab, #context_playSelectedTabs { display: none !important; } } /* Hide “Open Tab/Link in New Container Tab” */ @media -moz-pref("uc.hidecontext.newcontainer") { #context_reopenInContainer, #context-openlinkinusercontext-menu { display: none !important; } } /* Hide “Send Tab/Link to Device” */ @media -moz-pref("uc.hidecontext.sendtodevice") { #context_sendTabToDevice, #context-sendpagetodevice, #context-sendlinktodevice, #context-sep-sendlinktodevice { display: none !important; } } /* Hide "Close Tabs" & "Close Duplicate Tabs"*/ @media -moz-pref("uc.hidecontext.closetab") { #context_closeTab, #context_closeDuplicateTabs { display: none !important; } } /* Hide “Search Keywords" with your preferred search engine */ @media -moz-pref("uc.hidecontext.search") { #context-searchselect { display: none !important; } } /* Hide “Search Keywords in a Private Window” */ @media -moz-pref("uc.hidecontext.searchinpriv") { #context-searchselect-private { display: none !important; } } /* Hide "Translate Selection/Link" options */ @media -moz-pref("uc.hidecontext.translate") { #context-translate-selection, #frame-sep { display: none !important; } } /* Hide "Ask AI chatbot" options */ @media -moz-pref("uc.hidecontext.askchatbot") { #context-ask-chat { display: none !important; } } /* Hide "Print Selection” */ @media -moz-pref("uc.hidecontext.printselection") { #context-print-selection { display: none !important; } } /* Hide “Email Image”, “Set Image as Desktop Background”, and “View Image Info” options */ @media -moz-pref("uc.hidecontext.image") { #context-sendimage, #context-sep-setbackground, #context-setDesktopBackground, #context-sep-sharing, #context-viewimageinfo { display: none !important; } } /* Hide "Copy Video Link", "Copy Audio Link", "Email Video" and "Email Audio" options */ @media -moz-pref("uc.hidecontext.audiovideo") { #context-copyvideourl, #context-copyaudiourl, #context-sendvideo, #context-sendaudio, #context-sep-sharing { display: none !important; } } /* Hide "Check Spelling" and "Text/Page Direction" option while typing in text fields */ @media -moz-pref("uc.hidecontext.checkspelling") { #spell-separator, #spell-check-enabled, #spell-add-dictionaries-main, #spell-dictionaries, #context-sep-bidi, #context-bidi-text-direction-toggle, #context-bidi-page-direction-toggle { display: none !important; } } /* Hide "Take Screenshot" option */ @media -moz-pref("uc.hidecontext.screenshot") { #context-take-screenshot, #context-sep-screenshots, #frame-sep { display: none !important; } } /* Hide "This Frame" option */ @media -moz-pref("uc.hidecontext.frame") { #frame-sep, #frame { display: none !important; } } /* Hide “Select All Text” option */ @media -moz-pref("uc.hidecontext.selectalltext") { #context-selectall, #context-sep-selectall { display: none !important; } } /* Hide “Reload Tab” option */ @media -moz-pref("uc.hidecontext.reloadtab") { #context_reloadTab, #context_reloadSelectedTabs, #toolbar-context-reloadSelectedTab, #toolbar-context-reloadSelectedTabs { display: none !important; } } /* Hide "Duplicate Tab" */ @media -moz-pref("uc.hidecontext.duplicatetab") { #context_duplicateTab, #context_duplicateTabs, #tabContextMenu > :nth-child(21) { display: none !important; } } /* Hide “View Page Source”, "View Selection Source" and “Inspect” options */ @media -moz-pref("uc.hidecontext.inspect") { #context-viewsource, #context-inspect-a11y, #context-inspect, #inspect-separator, #context-media-eme-separator, #context-viewpartialsource-selection { display: none !important; } } /* Hide “Save Page As and Save Link As” */ @media -moz-pref("uc.hidecontext.savelink") { #context-savepage, #context-savelink { display: none !important; } } /* Hide "Pin Tab" and "Add to Essentials" options */ @media -moz-pref("uc.hidecontext.pin") { #context_pinTab, #context_unpinTab, #context_pinSelectedTabs, #context_unpinSelectedTabs, #context_zen-add-essential, #context_zen-remove-essential { display: none !important; } } /* Hide top buttons (Back, Forward, Reload, Bookmark Page) on page context menu */ @media -moz-pref("uc.hidecontext.navigation") { #context-navigation, #context-sep-navigation { display: none !important; } } /* Restore back context menu icons pre-1.12.9b */ /* I'm not guaranteeing there will be icons for future context menu options */ /* Help me contribute on this, hit me up on github.com/KiKaraage/ZenMods/issues */ /* PART 1: Setting inline padding and margin values */ :root { @media -moz-pref("uc.fixcontext.restoreicons") { --zen-contextmenu-menuitem-padding-inline: 5px !important; --zen-contextmenu-menuicon-margin-inline: 3px !important; --zen-contextmenu-menuitem-margin: 0px 2px !important; } } @media -moz-pref("uc.fixcontext.restoreicons") { /* PART 2: Adding start inline padding to options, * For now this also affected items with existing paddings * Like on toolbar context menu, or on extension options * Help me fix this, hit me up on github.com/KiKaraage/ZenMods/issues */ .menu-text { @media (-moz-platform: windows) { padding-inline-start: 24px !important; } } /* PART 3: Adding icons back to regular context menu options */ :not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menuitem:not( .menuitem-iconic, [type='checkbox'], [type='radio'], .in-menulist, .in-menulist menuitem, .unified-nav-current ) { background-image: var(--menu-image) !important; background-size: 16px !important; background-position: var(--zen-contextmenu-menuitem-padding-inline) center !important; background-repeat: no-repeat !important; -moz-context-properties: fill, fill-opacity !important; fill: currentColor !important; } /* PART 4: Adding icons back to context menu options that has arrow */ :not(:not(menubar) > menu, #ContentSelectDropdown) > menupopup > menu:not( .menu-iconic, [type='checkbox'], [type='radio'], .in-menulist, .in-menulist menu, .unified-nav-current ), #toggle_toolbar-menubar, #PanelUI-history toolbarbutton, #unified-extensions-context-menu menuitem { background-image: var(--menu-image) !important; background-size: 16px !important; background-position: var(--zen-contextmenu-menuitem-padding-inline) center !important; background-repeat: no-repeat !important; -moz-context-properties: fill, fill-opacity !important; fill: currentColor !important; } /* PART 5: Normalize left padding for options with checkboxes, like Compact Mode options * Still not applied to options like 'Tabs on the right' sadly * Help me fix this, hit me up on github.com/KiKaraage/ZenMods/issues */ @media (-moz-platform: windows) { @media -moz-pref("uc.fixcontext.restoreicons") { menupopup > menuitem[checked='true'] { padding-inline-start: var(--zen-contextmenu-menuicon-margin-inline) !important; > .menu-text { padding: 0 !important; } } menupopup > menuitem[checked='false'] { padding-inline: calc(var(--zen-contextmenu-menuicon-margin-inline) + 0px) !important; } } } } /* PART 6: Specifying icons to apply for options in Unified Extensions Menu */ @media not (-moz-platform: linux) { @media -moz-pref("uc.fixcontext.restoreicons") { .unified-extensions-context-menu-pin-to-toolbar { --menu-image: url('chrome://browser/skin/zen-icons/pin.svg'); } } .unified-extensions-context-menu-move-widget-down { --menu-image: url('chrome://browser/skin/zen-icons/arrow-down.svg'); } .unified-extensions-context-menu-move-widget-up { --menu-image: url('chrome://browser/skin/zen-icons/arrow-up.svg'); } } /* PART 7: Specifying icons to apply for other context menu options */ /* Use icons from Zen icon directory - chrome://browser/skin/zen-icons/ */ /* Use icons from Firefox icon directory - chrome://browser/skin/ */ @media -moz-pref("uc.fixcontext.restoreicons") { #context_zenSplitTabs { --menu-image: url('chrome://browser/skin/zen-icons/sidebars-right.svg') !important; } #context-zenSplitLink { --menu-image: url('chrome://browser/skin/zen-icons/split.svg') !important; } #context_zenOpenWorkspace, #context_zenOpenWorkspacePanel { --menu-image: url('chrome://browser/skin/zen-icons/manage.svg') !important; } #context_zenEditWorkspaceIcon { --menu-image: url('chrome://browser/skin/zen-icons/canvas.svg') !important; } .zenToolbarThemePicker, #zenToolbarThemePicker { --menu-image: url('chrome://browser/skin/zen-icons/edit-theme.svg') !important; } #context-video-pictureinpicture:not([checked='true']) .menu-iconic-icon { list-style-image: url('chrome://browser/skin/zen-icons/media-pip.svg') !important; } #context-media-loop:not([checked='true']) .menu-iconic-icon { list-style-image: url('chrome://browser/skin/zen-icons/media-loop.svg') !important; } #context-savepage { --menu-image: url('chrome://browser/skin/zen-icons/save.svg'); } #context-selectall, .textbox-contextmenu menuitem[cmd*='selectAll'], #context_selectAllTabs, #toolbar-context-selectAllTabs { --menu-image: url('chrome://browser/skin/zen-icons/edit-select-all.svg'); } #context-undo, .textbox-contextmenu menuitem[cmd*='undo'], #context_undoCloseTab, #toolbar-context-undoCloseTab { --menu-image: url('chrome://browser/skin/zen-icons/edit-undo.svg'); } #toggle_toolbar-menubar { --menu-image: url('chrome://browser/skin/zen-icons/menu-bar.svg'); } #context-redo, .textbox-contextmenu menuitem[cmd*='redo'] { --menu-image: url('chrome://browser/skin/zen-icons/edit-redo.svg'); } #context-copy, .textbox-contextmenu menuitem[cmd*='copy'], .textbox-contextmenu #strip-on-share, #placesContext_copy { --menu-image: url('chrome://browser/skin/zen-icons/edit-copy.svg'); } #context-paste, .textbox-contextmenu menuitem[cmd*='paste'], #placesContext_paste, #placesContext_paste_group { --menu-image: url('chrome://browser/skin/zen-icons/edit-paste.svg'); } #context-cut, .textbox-contextmenu menuitem[cmd*='cut'], #placesContext_cut { --menu-image: url('chrome://browser/skin/zen-icons/edit-cut.svg'); } #context-delete, .customize-context-removeExtension, .unified-extensions-context-menu-remove-extension, .textbox-contextmenu menuitem[cmd*='delete'], menuitem[id='placesContext_deleteBookmark'], menuitem[id='placesContext_deleteFolder'], menuitem[id='placesContext_delete'], menuitem[id='placesContext_delete_history'], menuitem[id='placesContext_deleteHost'], #context_zenDeleteWebPanel, #context_zenDeleteWorkspace { --menu-image: url('chrome://browser/skin/zen-icons/edit-delete.svg'); } #paste-and-go { --menu-image: url('chrome://browser/skin/zen-icons/paste-and-go.svg'); } #context-print-selection { --menu-image: url('chrome://browser/skin/zen-icons/print.svg'); } #context-take-screenshot { --menu-image: url('chrome://browser/skin/zen-icons/screenshot.svg'); } #context-viewsource { --menu-image: url('chrome://browser/skin/zen-icons/source-code.svg'); } #context-inspect-a11y { --menu-image: url('chrome://browser/skin/zen-icons/accessibility.svg'); } #context-inspect { --menu-image: url('chrome://browser/skin/zen-icons/inspect.svg'); } #context-searchselect { --menu-image: url('chrome://browser/skin/zen-icons/search-glass.svg'); } #context-searchselect-private { --menu-image: url('chrome://browser/skin/privateBrowsing.svg'); } #context-viewimage { --menu-image: url('chrome://browser/skin/zen-icons/image-open.svg'); } #context-viewimageinfo { --menu-image: url('chrome://browser/skin/zen-icons/info.svg'); } #context-saveimage, #context-video-saveimage { --menu-image: url('chrome://browser/skin/zen-icons/image-save.svg'); } #context-savevideo { --menu-image: url('chrome://browser/skin/zen-icons/video-save.svg'); } #context-viewvideo { --menu-image: url('chrome://browser/skin/zen-icons/video-open.svg'); } #context-saveaudio { --menu-image: url('chrome://browser/skin/zen-icons/audio-save.svg'); } #context-copyimage-contents { --menu-image: url('chrome://browser/skin/zen-icons/image-copy.svg'); } #context-copyimage, #context-copyvideourl, #context-copylink, #context-stripOnShareLink, #context_zenOpenNewTabWebPanel, #context-pdfjs-copy { --menu-image: url('chrome://browser/skin/zen-icons/link.svg'); } #placesContext_open, #context-openlinkincurrent { --menu-image: url('chrome://browser/skin/zen-icons/ext-link.svg'); } #context-ask-chat { --menu-image: url('chrome://browser/skin/trending.svg'); } #context-translate-selection { --menu-image: url('chrome://browser/skin/translations.svg'); } #context-viewsource, #context-viewframesource, #context-viewpartialsource-selection { --menu-image: url('chrome://browser/skin/zen-icons/source-code.svg'); } #context-sendimage, #context-sendvideo, #context-sendaudio { --menu-image: url('chrome://browser/skin/zen-icons/mail.svg'); } #context-setDesktopBackground, .viewCustomizeToolbar { --menu-image: url('chrome://browser/skin/zen-icons/customize.svg'); } #context-reloadimage, #context_reloadTab, #context_reloadSelectedTabs, #toolbar-context-reloadSelectedTab, #toolbar-context-reloadSelectedTabs, #context_zen-reset-pinned-tab { --menu-image: url('chrome://browser/skin/zen-icons/reload.svg'); } #context-sendlinktodevice, #context_sendTabToDevice, #context-sendpagetodevice { --menu-image: url('chrome://browser/skin/zen-icons/send-to-device.svg'); } #context-openlinkintab, #context-openlinkincontainertab, #context_zenWorkspacesOpenInContainerTab, #context_zenWebPanelContextInContainer, menuitem[id='placesContext_open:newtab'], menuitem[id='placesContext_openLinks:tabs'], menuitem[id='placesContext_openBookmarkLinks:tabs'], menuitem[id='placesContext_openBookmarkContainer:tabs'] { --menu-image: url('chrome://browser/skin/zen-icons/tab.svg'); } #context_openANewTab, #toolbar-context-openANewTab { --menu-image: url('chrome://browser/skin/zen-icons/new-tab-image.svg'); } #context-openlinkinusercontext-menu, menu[id='placesContext_open:newcontainertab'], menu[id='placesContext_openContainer:tabs'] { --menu-image: url('chrome://browser/skin/zen-icons/container-tab.svg'); } #context-openlink, menuitem[id='placesContext_open:newwindow'] { --menu-image: url('chrome://browser/skin/zen-icons/window.svg'); } #context-openlinkprivate, menuitem[id='placesContext_open:newprivatewindow'] { --menu-image: url('chrome://browser/skin/zen-icons/private-window.svg'); } #context-savelink { --menu-image: url('chrome://browser/skin/zen-icons/downloads.svg'); } #spell-add-to-dictionary { --menu-image: url('chrome://browser/skin/zen-icons/add-to-dictionary.svg'); } #manage-saved-logins { --menu-image: url('chrome://browser/skin/zen-icons/passwords.svg'); } #context-media-play, #context_playTab, #context_playSelectedTabs { --menu-image: url('chrome://browser/skin/zen-icons/media-play.svg'); } #context-media-pause { --menu-image: url('chrome://browser/skin/zen-icons/media-pause.svg'); } #context-media-mute, #context_toggleMuteTab, #context_toggleMuteSelectedTabs, #context_zenToggleMuteWebPanel { --menu-image: url('chrome://browser/skin/zen-icons/media-mute.svg'); } #context-media-unmute, #context_toggleMuteTab[muted], #context_toggleMuteSelectedTabs[muted], #context_zenToggleMuteWebPanel[muted] { --menu-image: url('chrome://browser/skin/zen-icons/media-unmute.svg'); } #context-media-playbackrate { --menu-image: url('chrome://browser/skin/zen-icons/media-speed.svg'); } #context-video-fullscreen { --menu-image: url('chrome://browser/skin/zen-icons/fullscreen.svg'); } #context-leave-dom-fullscreen, menuitem[contexttype='fullscreen'][label*='Exit'] { --menu-image: url('chrome://browser/skin/zen-icons/fullscreen-exit.svg'); } #context-media-hidecontrols, #context-media-showcontrols { --menu-image: url('chrome://browser/skin/zen-icons/permissions.svg'); } #context_pinTab, #context_unpinTab, #context_pinSelectedTabs, #context_unpinSelectedTabs, .customize-context-moveToPanel, #context_zen-replace-pinned-url-with-current { --menu-image: url('chrome://browser/skin/zen-icons/pin.svg'); } #context_zen-add-essential { --menu-image: url('chrome://browser/skin/zen-icons/essential-add.svg'); } #context_zen-remove-essential { --menu-image: url('chrome://browser/skin/zen-icons/essential-remove.svg'); } .customize-context-removeFromToolbar { --menu-image: url('chrome://browser/skin/zen-icons/unpin.svg'); } #zen-sidebar-web-panel-pinned[pinned='true'] { list-style-image: url('chrome://browser/skin/zen-icons/pin.svg') !important; } #zen-sidebar-web-panel-pinned { list-style-image: url('chrome://browser/skin/zen-icons/unpin.svg') !important; } #context_duplicateTab, #context_duplicateTabs, menuitem[data-l10n-id="zen-panel-ui-workspaces-create"] { --menu-image: url('chrome://browser/skin/zen-icons/duplicate-tab.svg'); } #zen-context-menu-compact-mode { --menu-image: url('chrome://browser/skin/zen-icons/sidebar.svg'); } #context_bookmarkTab, #context_bookmarkSelectedTabs, #toggle_PersonalToolbar, #context-bookmarklink, #toolbar-context-bookmarkSelectedTab, #toolbar-context-bookmarkSelectedTabs { --menu-image: url('chrome://browser/skin/zen-icons/bookmark-hollow.svg'); } menuitem[id='placesContext_show_bookmark:info'], menuitem[id='placesContext_show_folder:info'], menuitem[id='placesContext_show:info'] { --menu-image: url('chrome://browser/skin/zen-icons/edit.svg'); } menuitem[id='placesContext_showAllBookmarks'], #BMB_bookmarksShowAllTop, #BMB_bookmarksShowAll, .customize-context-manageExtension, .unified-extensions-context-menu-manage-extension { --menu-image: url('chrome://browser/skin/zen-icons/manage.svg'); } #BMB_viewBookmarksSidebar { --menu-image: url('chrome://browser/skin/sidebars.svg'); } #BMB_searchBookmarks { --menu-image: url('chrome://browser/skin/zen-icons/search-page.svg'); } menuitem[id='placesContext_new:bookmark'], menuitem[id='placesContext_new:folder'], menuitem[id='placesContext_new:separator'], #context_zenEditWorkspace { --menu-image: url('chrome://browser/skin/zen-icons/plus.svg'); } #context-savelinktopocket, #context-pocket { --menu-image: url('chrome://browser/skin/zen-icons/pocket-outline.svg'); } #context_ungroupTab, #context_moveTabOptions, #context-zen-change-workspace-tab, #context_zenReorderWorkspaces { --menu-image: url('chrome://browser/skin/zen-icons/move-tab.svg'); } .share-tab-url-item { --menu-image: url('chrome://browser/skin/zen-icons/share.svg'); } #zen-context-menu-new-folder-toolbar, #zen-context-menu-new-folder { --menu-image: url('chrome://browser/skin/zen-icons/folder.svg'); } #context_moveTabToNewGroup, #context_moveTabToGroup, #context_reopenInContainer { --menu-image: url('chrome://browser/skin/zen-icons/container-tab.svg'); } #context_closeTab, #context_closeDuplicateTabs { --menu-image: url('chrome://browser/skin/zen-icons/close.svg'); } #context_closeTabOptions { --menu-image: url('chrome://browser/skin/zen-icons/close-all.svg'); } #context_unloadTab, #context_zenTabActions { --menu-image: url('chrome://browser/skin/zen-icons/close-all.svg'); } .customize-context-reportExtension, .unified-extensions-context-menu-report-extension { --menu-image: url('chrome://browser/skin/zen-icons/report.svg'); } .wordmark::after { content: 'Plus' !important; } #placesContext > menuitem[id="placesContext_sortBy:name"] { --menu-image: url('chrome://browser/skin/zen-icons/translations.svg'); } } /* PART 8: Improving the text margin one by one */ @media -moz-pref("uc.fixcontext.restoreicons") { /* 8A: Tab Context Menu */ #tabContextMenu { menuitem:not(.menuitem-iconic) > .menu-text, menu > .menu-text { margin-inline-start: 24px!important; } #context_reopenInContainerPopupMenu, #context-zen-change-workspace-tab-menu-popup, #context_sendTabToDevicePopupMenu, #closeTabOptions, #moveTabOptionsMenu { menuitem:not(.menuitem-iconic) > .menu-text, menu > .menu-text { margin-inline-start: 0 !important; } } } /* 8B: Workspace Context Menu */ #zenWorkspaceMoreActions { menuitem > .menu-text, menu > .menu-text { margin-inline-start: 24px !important; } #context_zenWorkspacesOpenInContainerTab > menupopup { menuitem > .menu-text, menu > .menu-text { margin-inline-start: 0 !important; } } } /* 8C: Content Area Context Menu */ #contentAreaContextMenu { menuitem:not(.menuitem-iconic, #context-undo, #context-redo, #context-cut, #context-copy, #context-paste, #context-delete ) > .menu-text, menu > .menu-text { margin-inline-start: 24px!important; } #context-ask-chat > menupopup, #context-sendpagetodevice-popup, #context-sendlinktodevice-popup { menuitem > .menu-text, menu > .menu-text { margin-inline-start: 0 !important; } } } /* 8D: Text Context Menu */ .textbox-contextmenu { .menu-text { margin-inline-start: 24px !important; } } /* 8E: Bookmarks Context Menu */ #placesContext { menuitem > .menu-text, menu > .menu-text { margin-inline-start: 0px !important; } #placesContext_open_newcontainertab_popup, #toggle_PersonalToolbar > menupopu { menuitem > .menu-text, menu > .menu-text { margin-inline-start: 0 !important; } } } } /* Name: Zen Back Forward */ /* Description: Hide Back and Forward button when you don't need them */ /* Author: @KiKaraage */ @-moz-document url-prefix("chrome:") { :root:not([customizing]) #back-button[disabled] { display: none !important; } :root:not([customizing]) #forward-button[disabled] { display: none !important; } } /* Name: No Search Shortcut Icons */ /* Description: Hides search shortcuts in the Zen browser URL bar, showing them only when the bar is focused. */ /* Author: @itsfaizankhan */ @-moz-document url-prefix("chrome:") { .search-one-offs { display: none !important; } .search-one-offs:has(.searchbar-engine-one-off-item[selected]) { display: flex !important; } } /* Name: Transparent Zen */ /* Description: Make the Zen Browser's tab background transparent, get smooth animations and more. Enable features in mod settings and visit the homepage below to learn more about the features. 👇 */ /* Author: @sameerasw */ /* variables */ .zen-browser-generic-background { @media -moz-pref( "mod.sameerasw.zen_bg_color_enabled") { --zen-main-browser-background: var( --mod-sameerasw-zen_transparency_color, #00000000 ) !important; } } /* animation smoothness */ :root:has([mod-sameerasw_zen_animations="0"]) { --mod-sameerasw-zen-animation-smoothness: all 0.15s cubic-bezier(0.175, 0.885, 0.3, 1.3), filter 0.15s ease-in-out, opacity 0.2s ease-in-out !important; } :root:has([mod-sameerasw_zen_animations="1"]) { --mod-sameerasw-zen-animation-smoothness: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.35), filter 0.3s ease-in-out, opacity 0.3s ease-in-out !important; } :root:has([mod-sameerasw_zen_animations="2"]) { --mod-sameerasw-zen-animation-smoothness: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.55), filter 0.4s ease-in-out, opacity 0.45s ease-in-out !important; } :root:has([mod-sameerasw_zen_animations="3"]) { --mod-sameerasw-zen-animation-smoothness: all 0.25s cubic-bezier(0.575, 0.685, 0.52, 1.55), filter 0.3s ease-in-out, opacity 0.35s ease-in-out !important; } /* default */ :root:not(:has([mod-sameerasw_zen_animations])) { --mod-sameerasw-zen-animation-smoothness: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.35), filter 0.3s ease-in-out, opacity 0.3s ease-in-out !important; } /* tab tint */ :root:has([mod-sameerasw_zen_light_tint="1"]) { .browserStack { & > browser { background-color: light-dark( rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1) ) !important; } } } :root:has([mod-sameerasw_zen_light_tint="2"]) { .browserStack { & > browser { background-color: transparent !important; } } } /* hide shadows */ hbox.browserSidebarContainer, #zen-tabbox-wrapper { @media -moz-pref( "mod.sameerasw.zen_no_shadow") { box-shadow: none !important; } } /* Animations */ /* Tab switch animation */ #tabbrowser-tabpanels > hbox:not([zen-split="true"]):not(:has(.zen-glance-background)) { @media -moz-pref( "mod.sameerasw.zen_tab_switch_anim") { transition: var(--mod-sameerasw-zen-animation-smoothness) !important; scale: 0.9 !important; opacity: 0; } } #tabbrowser-tabpanels > hbox.deck-selected:not([zen-split="true"]) { @media -moz-pref( "mod.sameerasw.zen_tab_switch_anim") { scale: 1 !important; opacity: 1 !important; } } /* website switch animations */ #browser:not(:has(.zen-glance-background)) #tabbrowser-tabpanels { @media -moz-pref( "mod.sameerasw.zen_urlbar_zoom_anim") { transition: var(--mod-sameerasw-zen-animation-smoothness) !important; } } /* URL bar zoom animation */ #browser:has(#urlbar[open][zen-floating-urlbar="true"]) #tabbrowser-tabpanels { @media -moz-pref( "mod.sameerasw.zen_urlbar_zoom_anim") { pointer-events: none; scale: 1.1 !important; filter: blur(10px) brightness(70%) !important; } } #urlbar[open][zen-floating-urlbar="true"] .urlbar-background { @media -moz-pref( "mod.sameerasw.zen_urlbar_zoom_anim") { background-color: color-mix(in srgb, var(--zen-urlbar-background-base) 60%, transparent) !important; border-radius: 1em !important; } } /* trackpad gestures*/ tabpanels .browserStack browser { @media -moz-pref( "mod.sameerasw.zen_trackpad_anim") { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) 0.1s !important; } } /* Previous animation*/ .browserStack:has( #historySwipeAnimationPreviousArrow:not([style="translate: none;"]) ) browser { @media -moz-pref( "mod.sameerasw.zen_trackpad_anim") { scale: 0.95 !important; transform: translateX(3%) !important; border-radius: 2em !important; } } /* Next animation*/ .browserStack:has( #historySwipeAnimationNextArrow:not([style="translate: none;"]) ) browser { @media -moz-pref( "mod.sameerasw.zen_trackpad_anim") { scale: 0.95 !important; transform: translateX(-3%) !important; border-radius: 2em !important; } } /* no tab image */ :root:has( [mod-sameerasw_zen_empty_tab_logo="1"], [mod-sameerasw_zen_empty_tab_logo="2"], [mod-sameerasw_zen_empty_tab_logo="3"] ) { #browser:has([zen-empty-tab="true"][selected="true"]) .browserStack { background-image: var( --mod-sameerasw-zen_notab_img, url("https://raw.githubusercontent.com/zen-browser/branding/refs/heads/main/Official/Word%20Marks/SVG/zen_logo_icon_white.svg") ) !important; background-position: center !important; background-repeat: no-repeat !important; background-size: var(--mod-sameerasw-zen_notab_img_size, 150px) !important; opacity: var(--mod-sameerasw-zen_notab_img_opacity, 1) !important; } } :root:has( [mod-sameerasw_zen_empty_tab_logo="2"] ) { #browser:has([zen-empty-tab="true"][selected="true"]) .browserStack { filter: saturate(0) !important; } } :root:has( [mod-sameerasw_zen_empty_tab_logo="3"] ) { #browser:has([zen-empty-tab="true"][selected="true"]) .browserStack { filter: saturate(0) !important; @media (prefers-color-scheme: light) { filter: saturate(0) invert(1) !important; } } } /* ============= Transparent Sidebar: Mask or Push ============= */ :root:has( [mod-sameerasw_zen_compact_sidebar_type="1"], [mod-sameerasw_zen_compact_sidebar_type="2"] ) { #zen-main-app-wrapper { --zen-sidebar-custom-width: var( --mod-sameerasw-zen_compact_sidebar_width, 165px ) !important; } [zen-compact-mode="true"] #navigator-toolbox { --zen-sidebar-width: var(--zen-sidebar-custom-width) !important; --actual-zen-sidebar-width: var(--zen-sidebar-custom-width) !important; width: var(--zen-sidebar-custom-width) !important; #titlebar{ width: var(--zen-sidebar-width) !important; } } #zen-toolbar-background, #zen-toolbar-background::after, .zen-toolbar-background, .zen-toolbar-background::after{ background-color: color-mix(in srgb, var(--arrowpanel-background) 30%, transparent) !important; } } /* Shared: Soft mask background and shadow */ #main-window:has([mod-sameerasw_zen_compact_sidebar_type="2"]) #titlebar::before { box-shadow: light-dark(#fff3, #0003) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px !important; background-color: light-dark(#fff8, #0005) !important; } /* Mask type - left sidebar */ #main-window:not([zen-right-side="true"]):has( [mod-sameerasw_zen_compact_sidebar_type="2"] ) #zen-main-app-wrapper[zen-compact-mode="true"]:has( [zen-user-show=""], #navigator-toolbox[zen-has-hover="true"], [has-popup-menu=""] ) #tabbrowser-tabpanels { mask-image: linear-gradient( to right, transparent 0, transparent calc(var(--zen-sidebar-custom-width) + 10px), black calc(var(--zen-sidebar-custom-width) + 10px), black 100% ) !important; } /* Mask type - right sidebar */ #main-window[zen-right-side="true"]:has( [mod-sameerasw_zen_compact_sidebar_type="2"] ) #zen-main-app-wrapper[zen-compact-mode="true"]:has( [zen-user-show=""], #navigator-toolbox[zen-has-hover="true"], [has-popup-menu=""] ) #tabbrowser-tabpanels { mask-image: linear-gradient( to left, transparent 0, transparent calc(var(--zen-sidebar-custom-width) + 10px), black calc(var(--zen-sidebar-custom-width) + 10px), black 100% ) !important; } /* Push type - left sidebar */ #main-window:not([zen-right-side="true"]):has( [mod-sameerasw_zen_compact_sidebar_type="1"] ) #zen-main-app-wrapper[zen-compact-mode="true"]:has( [zen-user-show=""], #navigator-toolbox[zen-has-hover="true"], [has-popup-menu=""] ) #zen-appcontent-wrapper { transform: translateX(calc(var(--zen-sidebar-custom-width) + 10px)) !important; } /* Push type - right sidebar */ #main-window[zen-right-side="true"]:has( [mod-sameerasw_zen_compact_sidebar_type="1"] ) #zen-main-app-wrapper[zen-compact-mode="true"]:has( [zen-user-show=""], #navigator-toolbox[zen-has-hover="true"], [has-popup-menu=""] ) #zen-appcontent-wrapper { transform: translateX(calc(0px - var(--zen-sidebar-custom-width) - 10px)) !important; } /* Shared Push Transition (used in both left and right) */ #main-window:has([mod-sameerasw_zen_compact_sidebar_type="1"]) #zen-appcontent-wrapper { --zen-compact-mode-func: linear( 0 0%, 0.002748 1%, 0.010544 2%, 0.022757 3%, 0.038804 4%, 0.058151 5%, 0.080308 6%, 0.104828 7%, 0.131301 8%, 0.159358 9%, 0.188662 10%, 0.21891 11%, 0.249828 12%, 0.281172 13%, 0.312724 14%, 0.344288 15%, 0.375693 16%, 0.40679 17%, 0.437447 18%, 0.467549 19%, 0.497 20%, 0.525718 21%, 0.553633 22%, 0.580688 23%, 0.60684 24%, 0.632052 25%, 0.656298 26%, 0.679562 27%, 0.701831 28%, 0.723104 29%, 0.743381 30%, 0.76267 31%, 0.780983 32%, 0.798335 33%, 0.814744 34%, 0.830233 35%, 0.844826 36%, 0.858549 37%, 0.87143 38%, 0.883498 39%, 0.894782 40%, 0.905314 41%, 0.915125 42%, 0.924247 43%, 0.93271 44%, 0.940547 45%, 0.947787 46%, 0.954463 47%, 0.960603 48%, 0.966239 49%, 0.971397 50%, 0.976106 51%, 0.980394 52%, 0.984286 53%, 0.987808 54%, 0.990984 55%, 0.993837 56%, 0.99639 57%, 0.998664 58%, 1.000679 59%, 1.002456 60%, 1.004011 61%, 1.005363 62%, 1.006528 63%, 1.007522 64%, 1.008359 65%, 1.009054 66%, 1.009618 67%, 1.010065 68%, 1.010405 69%, 1.010649 70%, 1.010808 71%, 1.01089 72%, 1.010904 73%, 1.010857 74%, 1.010757 75%, 1.010611 76%, 1.010425 77%, 1.010205 78%, 1.009955 79%, 1.009681 80%, 1.009387 81%, 1.009077 82%, 1.008754 83%, 1.008422 84%, 1.008083 85%, 1.00774 86%, 1.007396 87%, 1.007052 88%, 1.00671 89%, 1.006372 90%, 1.00604 91%, 1.005713 92%, 1.005394 93%, 1.005083 94%, 1.004782 95%, 1.004489 96%, 1.004207 97%, 1.003935 98%, 1.003674 99%, 1.003423 100% ) !important; transition: transform 0.25s var(--zen-compact-mode-func) !important; } /* Push: transparent titlebar */ #main-window:has([mod-sameerasw_zen_compact_sidebar_type="1"]) #titlebar::before { background-color: transparent !important; outline: none !important; box-shadow: none !important; } /* Sidebar background transparency */ #sidebar-box { @media -moz-pref( "mod.sameerasw.zen_transparent_sidebar_enabled") { background-color: transparent !important; box-shadow: none !important; } } /* Custom background */ @media -moz-pref("mod.sameerasw.zen_bg_img_enabled") { @media -moz-pref("mod.sameerasw.zen_bg_img_not_fullscreen") { #main-window::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--mod-sameerasw-zen_bg_img) no-repeat center center fixed !important; background-size: cover !important; opacity: var(--mod-sameerasw-zen_bg_opacity, 1) !important; filter: blur(var(--mod-sameerasw-zen_bg_blur, 0)) !important; } } @media (display-mode: fullscreen) { #main-window::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--mod-sameerasw-zen_bg_img) no-repeat center center fixed !important; background-size: cover !important; opacity: var(--mod-sameerasw-zen_bg_opacity, 1) !important; filter: blur(var(--mod-sameerasw-zen_bg_blur, 0)) !important; } } } /* Transparent glance */ .zen-glance-background > vbox { @media -moz-pref( "mod.sameerasw.zen_transparent_glance_enabled") { mask-image: linear-gradient( to right, black 0%, black 3.7%, transparent 6.7%, transparent 93.3%, black 96.3%, black 100% ); mask-repeat: no-repeat; mask-size: 100% 100%; transition: all var(--zen-hidden-toolbar-transition), mask-image 0.3s ease-in-out 1s !important; } } .zen-glance-overlay > vbox { @media -moz-pref( "mod.sameerasw.zen_transparent_glance_enabled") { background-color: light-dark(#fff7, #0007) !important; border-radius: 1.5em !important; border: 1px solid light-dark(#ffff, #fff3); box-shadow: 4px 2px 60px light-dark(#0005, #0001), inset 0 2px 4px light-dark(#ffff, #fff3); } } .zen-glance-sidebar-container{ @media -moz-pref( "mod.sameerasw.zen_transparent_glance_enabled") { background-color: light-dark(#fff7, #0007) !important; border-radius: 10em !important; margin: 0.5em; padding: 0 !important; border: 1px solid light-dark(#ffff, #fff5); box-shadow: 4px 2px 60px light-dark(#0005, #0001), inset 0 2px 4px light-dark(#ffff, #fff3); gap: 6px !important; height: fit-content !important; backdrop-filter: blur(10px) !important; toolbarbutton{ margin: 0.5em !important; } } } /* End of Zen Mods */