/* This Source Code Form is subject to the terms of the Creative Commons
 * Attribution-NonCommercial-ShareAlike International License, v. 4.0.
 * If a copy of the CC BY-NC-SA 4.0 was not distributed with this
 * file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/
 * or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. */

/* this stylesheet adds icons to context menu items that don't already have them,
and replaces some icons that may already exist. */

menupopup menuitem:is([type="checkbox"], [type="radio"], [checked]) :is(.menu-text, .menu-iconic-text),
#context-inspect-a11y .menu-text,
#context-inspect .menu-text,
#context-viewsource .menu-text,
#context-viewinfo .menu-text,
#context-viewbgimage .menu-text,
#context-savepage .menu-text,
menu#pageStyleMenu > .menu-text,
#addon_darkreader_org-menuitem-_addSite:not(.menuitem-iconic) .menu-text,
#viewFullZoomMenu > .menu-text,
:is(#menu_zoomEnlarge, #menu_zoomReduce, #menu_zoomReset) .menu-text,
#viewToolbarsMenu > .menu-text,
#viewSidebarMenuMenu > .menu-text,
#sidebar-reverse-position > .menu-text,
#sidebarMenu-popup > menuitem[data-l10n-id="sidebar-menu-close"] > .menu-text,
#menu_showAllHistory > .menu-text,
menuitem#sanitizeItem > .menu-text,
:is(#sync-tabs-menuitem, #syncedTabsRefresh, #syncedTabsRefreshFilter) > .menu-text,
#historyRestoreLastSession > .menu-text,
#hiddenTabsMenu > .menu-text,
#context-sendpagetodevice > .menu-text,
#context-selectall .menu-text,
#context-pdfjs-selectall .menu-text,
#menu_selectAll .menu-text,
#menu_selectall .menu-text,
#context-sendlinktodevice > .menu-text,
#context-viewimageinfo .menu-text,
#context-setDesktopBackground .menu-text,
#context-sendaudio > .menu-text,
#context-sendimage > .menu-text,
#context-sendvideo > .menu-text,
#menu_sendLink > .menu-text,
#context-saveimage .menu-text,
#context-saveaudio .menu-text,
#context-savevideo .menu-text,
#context-savelink .menu-text,
#context-savelinktopocket .menu-text,
#menu_savePage .menu-text,
#menu_openFile .menu-text,
#context-pocket .menu-text,
#context-take-screenshot .menu-text,
#context-take-frame-screenshot .menu-text,
#context-saveframe .menu-text,
#context-viewimage .menu-text,
#context-copy .menu-text,
#context-pdfjs-copy .menu-text,
#context-copyaudiourl .menu-text,
#context-copyemail .menu-text,
#context-copyphone .menu-text,
#context-copyimage .menu-text,
#context-copyimage-contents .menu-text,
#context-copylink .menu-text,
:is(#context-stripOnShareLink, #strip-on-share) .menu-text,
#menu_copy .menu-text,
:is(#placesContext_show_bookmark\:info, #placesContext_show_folder\:info, #placesContext_show\:info) .menu-text,
#placesContext_showInFolder .menu-text,
#menu_openLocation .menu-text,
#context-copyvideourl .menu-text,
#context-bookmarkframe .menu-text,
#context-bookmarklink .menu-text,
#context-openframe .menu-text,
#context-openframeintab .menu-text,
#context-openlink .menu-text,
#context-openlinkincontainertab .menu-text,
#context-openlinkincurrent .menu-text,
#context-openlinkintab .menu-text,
#context-openlinkinunloadedtab .menu-text,
:is(#placesContext_open\:unloaded, #placesContext_openContainer\:unloaded, #placesContext_openLinks\:unloaded, #syncedTabsOpenUnloaded, #syncedTabsOpenAllUnloaded) .menu-text,
#placesContext_open\:newwindow .menu-text,
#syncedTabsOpenSelectedInWindow .menu-text,
#placesContext_open\:newprivatewindow .menu-text,
#syncedTabsOpenSelectedInPrivateWindow .menu-text,
:is(#placesContext_new\:bookmark, #placesContext_createBookmark, #syncedTabsBookmarkSelected) .menu-text,
#placesContext_new\:folder .menu-text,
#placesContext_new\:separator .menu-text,
:is(#placesContext_open\:container, #placesContext_openContainer\:container, #placesContext_openLinks\:container, #placesContext_open\:newcontainertab) > .menu-text,
:is(#syncedTabsOpenAllInContainer, #syncedTabsOpenSelectedInContainerTab) > .menu-text,
#bookmark-menu-container_robwu_nl-menuitem-_bookmark-menu-item:not(.menuitem-iconic) > .menu-text,
#placesContext > :is(menu, menuitem)[label="Open in New Container Tab"]:not(.menuitem-iconic) > .menu-text,
#menu_FileQuitItem .menu-text,
#context_openANewTab .menu-text,
#toolbar-context-openANewTab .menu-text,
#menu_newNavigatorTab .menu-text,
#placesContext_open .menu-text,
#context-openlinkinusercontext-menu > .menu-text,
#menu_newUserContext > .menu-text,
#context-openlinkprivate .menu-text,
#menu_newPrivateWindow .menu-text,
#context-searchselect .menu-text,
#context-searchselect-private .menu-text,
#context-translate-selection .menu-text,
#context-ask-chat > .menu-text,
#menu_find .menu-text,
#menu_findAgain .menu-text,
:is(menuitem#textfieldDirection-swap, #context-bidi-text-direction-toggle, #context-bidi-page-direction-toggle, #documentDirection-swap) .menu-text,
menuitem#repair-text-encoding .menu-text,
#context-viewpartialsource-selection .menu-text,
#placesContext_sortBy\:name .menu-text,
#context-viewsource-goToLine .menu-text,
#context-undo .menu-text,
#context-pdfjs-undo .menu-text,
#context-redo .menu-text,
#context-pdfjs-redo .menu-text,
#menu_undo .menu-text,
#menu_redo .menu-text,
:is(#undobookmarksmenuUndo, #undobookmarksmenuRedo) .menu-text,
#context-cut .menu-text,
#context-pdfjs-cut .menu-text,
#context-paste .menu-text,
#context-pdfjs-paste .menu-text,
#context-paste-no-formatting .menu-text,
#menu_cut .menu-text,
#menu_paste .menu-text,
#context-delete .menu-text,
#context-pdfjs-delete .menu-text,
#menu_delete .menu-text,
#syncedTabsCopySelected .menu-text,
:is(#placesContext_cut, #placesContext_copy, #placesContext_paste, #placesContext_paste_group) .menu-text,
:is(#placesContext_deleteBookmark, #placesContext_deleteFolder, #placesContext_delete, #placesContext_delete_history) .menu-text,
#placesContext_deleteHost .menu-text,
#context-keywordfield .menu-text,
#context-printframe .menu-text,
#context-print-selection .menu-text,
#menu_print .menu-text,
#menu_printPreview .menu-text,
:is(#menu_printSetup, #menu_readerModeItem) .menu-text,
#menu_importFromAnotherBrowser .menu-text,
#context-viewframesource .menu-text,
#context-viewframeinfo .menu-text,
menuitem#menu_openDownloads .menu-text,
menuitem#menu_openAddons .menu-text,
menuitem#menu_openUserChrome .menu-text,
#addon_darkreader_org-menuitem-_toggle:not(.menuitem-iconic) .menu-text,
menu[id^="format-with-prettier_phryneas_de-menuitem-"][ext-type="top-level-menu"] > .menu-text,
#private-relay_firefox_com-menuitem-_fx-private-relay-generate-alias:not(.menuitem-iconic) > .menu-text,
#private-relay_firefox_com-menuitem-_fx-private-relay-use-existing-aliases-from-this-site:not(.menuitem-iconic) > .menu-text,
#private-relay_firefox_com-menuitem-_fx-private-relay-use-existing-aliases:not(.menuitem-iconic) > .menu-text,
#private-relay_firefox_com-menuitem-_fx-private-relay-manage-aliases:not(.menuitem-iconic) > .menu-text,
:is(#contentAreaContextMenu, #toolbar-context-menu) menu:not(.menu-iconic, .menuitem-iconic)[id^="gitzip-firefox-addons_gitzip_org-menuitem-"] > .menu-text,
#menu_pageInfo .menu-text,
menuitem:is(#sync-setup, #sync-unverifieditem, #sync-reauthitem) .menu-text,
menuitem:is(#sync-enable, #sync-syncnowitem) .menu-text,
menuitem#menu_openFirefoxView > .menu-text,
menu#browserToolsMenu:not(.menu-iconic) > .menu-text,
menuitem#menu_preferences > .menu-text,
menuitem#menu_openHelp > .menu-text,
menuitem#feedbackPage > .menu-text,
menuitem#helpSafeMode > .menu-text,
menuitem#troubleShooting > .menu-text,
menuitem#help_reportBrokenSite > .menu-text,
menuitem#menu_HelpPopup_reportPhishingtoolmenu > .menu-text,
menuitem#menu_HelpPopup_reportPhishingErrortoolmenu > .menu-text,
menuitem#helpSwitchDevice > .menu-text,
menuitem#aboutName > .menu-text,
menuitem#helpPolicySupport > .menu-text,
:is(#new-tab-button-popup, .new-tab-popup) menuitem[command="Browser:OpenAboutContainers"] > .menu-text,
#context-frameOsPid .menu-text,
#context-reloadframe .menu-text,
#context-reloadimage .menu-text,
#userScriptsMenu-Restart .menu-text,
#context-showonlythisframe .menu-text,
#contentAreaContextMenu #frame > .menu-text,
#context-video-saveimage .menu-text,
.downloadPauseMenuItem .menu-text,
.downloadResumeMenuItem .menu-text,
.downloadUnblockMenuItem .menu-text,
.downloadUseSystemDefaultMenuItem .menu-text,
.downloadShowMenuItem .menu-text,
menuitem[data-l10n-id="downloads-cmd-go-to-download-page"] .menu-text,
menuitem[data-l10n-id="downloads-cmd-copy-download-link"] .menu-text,
.downloadRemoveFromHistoryMenuItem .menu-text,
menuitem[data-l10n-id="downloads-cmd-clear-list"] .menu-text,
menuitem[data-l10n-id="downloads-cmd-clear-downloads"] .menu-text,
menuitem[command="downloadsCmd_deleteFile"] .menu-text,
#context-media-pause .menu-text,
#context-media-play .menu-text,
#context-media-mute .menu-text,
#context-media-unmute .menu-text,
#context-video-fullscreen .menu-text,
#context-leave-dom-fullscreen .menu-text,
menuitem[data-l10n-id="full-screen-exit"] .menu-text,
#context-media-playbackrate > .menu-text,
#context-media-showcontrols .menu-text,
#context-media-hidecontrols .menu-text,
#context-viewvideo .menu-text,
#context_moveToStart .menu-text,
#context_moveToEnd .menu-text,
#context_openTabInWindow .menu-text,
#menu_newNavigator .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-undo"] .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-redo"] .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-cut"] .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-copy"] .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-paste"] .menu-text,
.textbox-contextmenu menuitem.searchbar-paste-and-search .menu-text,
.textbox-contextmenu menuitem:is([anonid="paste-and-go"], #paste-and-go) .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-delete"] .menu-text,
.textbox-contextmenu menuitem[data-l10n-id="text-action-select-all"] .menu-text,
.searchbar-clear-history .menu-text,
#spell-check-enabled .menu-iconic-text,
:is(#spell-add-to-dictionary, #spell-add-dictionaries, #spell-add-dictionaries-main, #spell-dictionaries) .menu-text,
#context_reopenInContainer > .menu-text,
#context_reloadTab .menu-text,
#context_reloadSelectedTabs .menu-text,
#toolbar-context-reloadSelectedTab .menu-text,
#toolbar-context-reloadSelectedTabs .menu-text,
#context_toggleMuteTab .menu-text,
#context_toggleMuteSelectedTabs .menu-text,
#context_playTab .menu-text,
#context_playSelectedTabs .menu-text,
#context_pinTab .menu-text,
#context_pinSelectedTabs .menu-text,
#context_unpinTab .menu-text,
#context_unpinSelectedTabs .menu-text,
#context_duplicateTab .menu-text,
#context_duplicateTabs .menu-text,
#menu_showAllTabs .menu-text,
#syncedTabsOpenSelectedInTab .menu-text,
#placesContext_open\:newtab .menu-text,
#syncedTabsOpenSelected .menu-text,
:is(#placesContext_openBookmarkContainer\:tabs, #placesContext_openBookmarkLinks\:tabs) .menu-text,
:is(#placesContext_openContainer\:tabs, #placesContext_openLinks\:tabs, #syncedTabsOpenAllInTabs) .menu-text,
#placesContext_showAllBookmarks .menu-text,
#syncedTabsManageDevices .menu-text,
#context-markAsRead .menu-text,
#context-markAsUnread .menu-text,
:is(#context_selectAllTabs, #toolbar-context-selectAllTabs) .menu-text,
#menu_searchBookmarks .menu-text,
#menu_bookmarkAllTabs .menu-text,
#context_bookmarkTab .menu-text,
#context_bookmarkSelectedTabs .menu-text,
#toolbar-context-bookmarkSelectedTab .menu-text,
#toolbar-context-bookmarkSelectedTabs .menu-text,
#context_moveTabOptions > .menu-text,
#context_sendTabToDevice > .menu-text,
menuitem.share-tab-url-item > .menu-text,
#context_closeTabOptions > .menu-text,
#context_closeDuplicateTabs > .menu-text,
:is(#context_closeTabsToTheStart, #context_closeTabsToTheEnd, #context_closeOtherTabs) .menu-text,
#context_undoCloseTab .menu-text,
#toolbar-context-undoCloseTab .menu-text,
#context_closeTab .menu-text,
#menu_close .menu-text,
#menu_closeWindow .menu-text,
menuitem#menu_devToolbox:not([checked="true"]) .menu-text,
menuitem#menu_taskManager .menu-text,
menuitem#menu_devtools_remotedebugging .menu-text,
menuitem#menu_browserToolbox .menu-text,
menuitem#menu_browserContentToolbox .menu-text,
menuitem#menu_browserConsole .menu-text,
menuitem#menu_responsiveUI:not([checked="true"]) .menu-text,
menuitem#menu_eyedropper .menu-text,
menuitem#menu_pageSource .menu-text,
menuitem#extensionsForDevelopers .menu-text,
menuitem#enableDeveloperTools .menu-text,
#context_unloadTab .menu-text,
#menu_searchHistory > .menu-text,
#historyUndoWindowMenu > .menu-text,
#historyUndoMenu > .menu-text,
.recently-closed-windows-menu > .menu-text,
.recently-closed-tabs-menu > .menu-text,
:is(.recently-closed-windows-menu, .recently-closed-tabs-menu, #historyUndoMenu, #historyUndoWindowMenu) menuitem.restoreallitem .menu-text,
#recently-closed-restore > .menu-text,
#recently-closed-restore-in-new-window > .menu-text,
#recently-closed-restore-in-new-private-window > .menu-text,
#recently-closed-remove-from-list > .menu-text,
#recently-closed-remove-from-history > .menu-text,
#recently-closed-bookmark > .menu-text,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType]:not([clientType=""]) .menu-text,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target.signintosync .menu-text,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType=""][clientId=""] .menu-text,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType=""][clientId=""] + .sendtab-target:not([clientType], [clientId]) .menu-text,
#userScriptsMenu > .menu-text,
#toggle_PersonalToolbar > .menu-text,
menu#fill-login > .menu-text,
menuitem#manage-saved-logins > .menu-text,
menuitem#fill-login-generated-password > .menu-text,
menu[label="Bitwarden"]:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-menuitem-_open-manager:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-menuitem-_open-options:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#simple-translate_sienori-menuitem-_translatePage:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#simple-translate_sienori-menuitem-_translateLink:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#simple-translate_sienori-menuitem-_translateText:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#toolbar-context-menu :is(menu, menuitem)[id^="jid1-bycqofyfmbmd9a_jetpack-menuitem"]:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#ublock0_raymondhill_net-menuitem-_uBlock0-blockElement:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#ublock0_raymondhill_net-menuitem-_uBlock0-blockElementInFrame:not(.menuitem-iconic, .menu-iconic) > .menu-text,
:is(menu, menuitem)[id^="multithreaded-download-manager"]:is([label="Open in new tab"], [label="Open in new window"], [label="Open in sidebar"]) > .menu-iconic-text,
#_287dcf75-bec6-4eec-b4f6-71948a2eea29_-menuitem-_ViewImage-SearchByImage:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#invert-element_aminomancer-menuitem-_menuitem-invert:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#menu_customizeToolbars .menu-text,
menuitem.viewCustomizeToolbar > .menu-text,
#addon_darkreader_org-menuitem-_switchEngine:not(.menuitem-iconic) .menu-text,
menupopup:not(#contentAreaContextMenu) > #addon_darkreader_org-menuitem-_DarkReader-top:not(.menuitem-iconic, .menu-iconic) > .menu-text,
menupopup:not(#contentAreaContextMenu) > #nordvpnproxy_nordvpn_com-menuitem-_nordvpn_extension_context_menu_group:not(.menuitem-iconic, .menu-iconic) > .menu-text,
menupopup:not(#contentAreaContextMenu) > #_7962ff4a-5985-4cf2-9777-4bb642ad05b8_-menuitem-_svg-gobbler:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#_testpilot-containers-menuitem-_hide-container:not(.menuitem-iconic, .menu-iconic) > .menu-text,
#_testpilot-containers-menuitem-_move-to-new-window-container:not(.menuitem-iconic, .menu-iconic) > .menu-text,
menuitem.customize-context-removeFromToolbar > .menu-text,
menuitem.customize-context-removeFromPanel > .menu-text,
menuitem.customize-context-moveToToolbar > .menu-text,
menuitem.customize-context-moveToPanel > .menu-text,
menuitem.customize-context-addToPanel > .menu-text,
menuitem.customize-context-addToToolbar > .menu-text,
menuitem.customize-context-manageExtension > .menu-text,
menu.customize-context-debugExtension > .menu-text,
menuitem.customize-context-CopyID > .menu-text,
menuitem.customize-context-CopyURL > .menu-text,
menuitem.customize-context-Inspector > .menu-text,
menuitem.customize-context-ViewSource > .menu-text,
menuitem.customize-context-Manifest > .menu-text,
menu.customize-context-ViewDocs-Submenu > .menu-text,
menuitem.customize-context-BrowserAction > .menu-text,
menuitem.customize-context-PageAction > .menu-text,
menuitem.customize-context-SidebarAction > .menu-text,
menuitem.customize-context-Options > .menu-text,
menuitem.pageActionContextMenuItem.manageExtensionItem > .menu-text,
menuitem.customize-context-removeExtension > .menu-text,
menuitem.pageActionContextMenuItem.removeExtensionItem > .menu-text,
menuitem.customize-context-reportExtension > .menu-text,
menuitem.unified-extensions-context-menu-move-widget-up > .menu-text,
menuitem.unified-extensions-context-menu-move-widget-down > .menu-text,
menu.unified-extensions-context-menu-debugExtension > .menu-text,
menuitem.unified-extensions-context-menu-manage-extension > .menu-text,
menuitem.unified-extensions-context-menu-remove-extension > .menu-text,
menuitem.unified-extensions-context-menu-report-extension > .menu-text,
menu.unified-extensions-context-menu-debugExtension > .menu-text,
menuitem.unified-extensions-context-menu-CopyID > .menu-text,
menuitem.unified-extensions-context-menu-CopyURL > .menu-text,
menuitem.unified-extensions-context-menu-Inspector > .menu-text,
menuitem.unified-extensions-context-menu-ViewSource > .menu-text,
menuitem.unified-extensions-context-menu-Manifest > .menu-text,
menu.unified-extensions-context-menu-ViewDocs-Submenu > .menu-text,
menuitem.unified-extensions-context-menu-BrowserAction > .menu-text,
menuitem.unified-extensions-context-menu-PageAction > .menu-text,
menuitem.unified-extensions-context-menu-SidebarAction > .menu-text,
menuitem.unified-extensions-context-menu-Options > .menu-text,
.urlbarView-result-menu > menuitem[data-command="inaccurate_location"] > .menu-text,
.urlbarView-result-menu > menuitem[data-command="show_less_frequently"] > .menu-text,
.urlbarView-result-menu > menu[data-l10n-id="firefox-suggest-command-dont-show-this"] > .menu-text,
.urlbarView-result-menu > menuitem[data-command="help"] > .menu-text,
.urlbarView-result-menuitem[data-command="not_relevant"] > .menu-text,
.urlbarView-result-menuitem[data-command="not_interested"] > .menu-text,
.urlbarView-result-menu > menuitem[data-command="dismiss"] > .menu-text {
  margin-inline: 0 !important;
  padding-inline: 0 2px !important;
}

#context_openTabInWindow::before,
#menu_newNavigator::before,
#context-video-saveimage::before,
#context-media-playbackrate::before,
#context-viewvideo::before,
#context-media-showcontrols::before,
#context-media-hidecontrols::before,
#context-printframe::before,
#context-print-selection::before,
#menu_print::before,
#menu_printPreview::before,
:is(#menu_printSetup, #menu_readerModeItem)::before,
#menu_importFromAnotherBrowser::before,
#context-frameOsPid::before,
#context-reloadimage::before,
#userScriptsMenu-Restart::before,
#context-reloadframe::before,
#context-inspect::before,
#context-inspect-a11y::before,
#context-viewsource::before,
#context-viewpartialsource-selection::before,
#context-viewframesource::before,
#context-viewinfo::before,
#context-viewimageinfo::before,
#context-viewframeinfo::before,
menuitem#menu_openDownloads::before,
menuitem#menu_openAddons::before,
menuitem#menu_openUserChrome::before,
#addon_darkreader_org-menuitem-_toggle:not(.menuitem-iconic)::before,
menu[id^="format-with-prettier_phryneas_de-menuitem-"][ext-type="top-level-menu"]::before,
#private-relay_firefox_com-menuitem-_fx-private-relay-generate-alias:not(.menuitem-iconic)::before,
#private-relay_firefox_com-menuitem-_fx-private-relay-use-existing-aliases-from-this-site:not(.menuitem-iconic)::before,
#private-relay_firefox_com-menuitem-_fx-private-relay-use-existing-aliases:not(.menuitem-iconic)::before,
#private-relay_firefox_com-menuitem-_fx-private-relay-manage-aliases:not(.menuitem-iconic)::before,
:is(#contentAreaContextMenu, #toolbar-context-menu) menu:not(.menu-iconic, .menuitem-iconic)[id^="gitzip-firefox-addons_gitzip_org-menuitem-"]::before,
#menu_pageInfo::before,
menuitem:is(#sync-setup, #sync-unverifieditem, #sync-reauthitem)::before,
menuitem:is(#sync-enable, #sync-syncnowitem)::before,
menuitem#menu_openFirefoxView::before,
menu#browserToolsMenu:not(.menu-iconic)::before,
menuitem#menu_preferences::before,
menuitem#menu_openHelp::before,
menuitem#feedbackPage::before,
menuitem#helpSafeMode::before,
menuitem#troubleShooting::before,
menuitem#help_reportBrokenSite::before,
menuitem#menu_HelpPopup_reportPhishingtoolmenu::before,
menuitem#menu_HelpPopup_reportPhishingErrortoolmenu::before,
menuitem#helpSwitchDevice::before,
menuitem#aboutName::before,
menuitem#helpPolicySupport::before,
:is(#new-tab-button-popup, .new-tab-popup) menuitem[command="Browser:OpenAboutContainers"]::before,
#context-viewbgimage::before,
#context-setDesktopBackground::before,
:is(#context-savepage, menu#pageStyleMenu, #addon_darkreader_org-menuitem-_addSite:not(.menuitem-iconic))::before,
#viewFullZoomMenu::before,
:is(#menu_zoomEnlarge, #menu_zoomReduce, #menu_zoomReset)::before,
#viewToolbarsMenu::before,
#viewSidebarMenuMenu::before,
#sidebar-reverse-position::before,
#sidebarMenu-popup > menuitem[data-l10n-id="sidebar-menu-close"]::before,
#menu_showAllHistory::before,
menuitem#sanitizeItem::before,
:is(#sync-tabs-menuitem, #syncedTabsRefresh, #syncedTabsRefreshFilter)::before,
#historyRestoreLastSession::before,
#hiddenTabsMenu::before,
#context-sendpagetodevice::before,
#context-sendlinktodevice::before,
#context-selectall::before,
#context-pdfjs-selectall::before,
#menu_selectAll::before,
#menu_selectall::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-select-all"]::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-copy"]::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-cut"]::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-paste"]::before,
.textbox-contextmenu menuitem.searchbar-paste-and-search::before,
.textbox-contextmenu menuitem:is([anonid="paste-and-go"], #paste-and-go)::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-delete"]::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-undo"]::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-redo"]::before,
.searchbar-clear-history::before,
#context-sendimage::before,
#context-sendvideo::before,
#menu_sendLink::before,
#context-sendaudio::before,
#context-saveaudio::before,
#context-saveframe::before,
#context-saveimage::before,
#context-savelink::before,
#context-savevideo::before,
#context-savelinktopocket::before,
#menu_savePage::before,
#menu_openFile::before,
#context-pocket::before,
#context-take-screenshot::before,
#context-take-frame-screenshot::before,
#context-viewimage::before,
#context-copy::before,
#context-pdfjs-copy::before,
#context-copyimage-contents::before,
#context-cut::before,
#context-pdfjs-cut::before,
#context-paste::before,
#context-pdfjs-paste::before,
#context-paste-no-formatting::before,
#menu_copy::before,
:is(#placesContext_show_bookmark\:info, #placesContext_show_folder\:info, #placesContext_show\:info)::before,
#placesContext_showInFolder::before,
#menu_cut::before,
#menu_paste::before,
#syncedTabsCopySelected::before,
:is(#placesContext_cut, #placesContext_copy, #placesContext_paste, #placesContext_paste_group)::before,
#context-delete::before,
#context-pdfjs-delete::before,
#menu_delete::before,
:is(#placesContext_deleteBookmark, #placesContext_deleteFolder, #placesContext_delete, #placesContext_delete_history)::before,
#placesContext_deleteHost::before,
#context-copyemail::before,
#context-copyphone::before,
#context-copyaudiourl::before,
#context-copyimage::before,
#context-copylink::before,
:is(#context-stripOnShareLink, #strip-on-share)::before,
#menu_openLocation::before,
#context-copyvideourl::before,
#context-bookmarkframe::before,
#context-bookmarklink::before,
#context-openlinkintab::before,
#context-openlinkinunloadedtab::before,
:is(#placesContext_open\:unloaded, #placesContext_openContainer\:unloaded, #placesContext_openLinks\:unloaded, #syncedTabsOpenUnloaded, #syncedTabsOpenAllUnloaded)::before,
#menu_FileQuitItem::before,
#context_openANewTab::before,
#toolbar-context-openANewTab::before,
#menu_newNavigatorTab::before,
#placesContext_open::before,
#context-openlinkincontainertab::before,
#context-openlinkinusercontext-menu::before,
#menu_newUserContext::before,
#context-openframeintab::before,
#context-openlinkincurrent::before,
#context-openlink::before,
#context-openframe::before,
#context-openlinkprivate::before,
#syncedTabsOpenSelectedInPrivateWindow::before,
#menu_newPrivateWindow::before,
#context-searchselect::before,
#context-searchselect-private::before,
#context-translate-selection::before,
#context-ask-chat::before,
#menu_find::before,
#menu_findAgain::before,
:is(menuitem#textfieldDirection-swap, #context-bidi-text-direction-toggle, #context-bidi-page-direction-toggle, #documentDirection-swap)::before,
menuitem#repair-text-encoding::before,
#placesContext_sortBy\:name::before,
#context-viewsource-goToLine::before,
#context-undo::before,
#context-pdfjs-undo::before,
#context-redo::before,
#context-pdfjs-redo::before,
#menu_undo::before,
#menu_redo::before,
:is(#undobookmarksmenuUndo, #undobookmarksmenuRedo)::before,
#context-keywordfield::before,
#context_reopenInContainer::before,
:is(#context_reloadTab, #context_reloadSelectedTabs, #toolbar-context-reloadSelectedTab, #toolbar-context-reloadSelectedTabs)::before,
:is(#context_toggleMuteTab, #context_toggleMuteSelectedTabs)::before,
:is(#context_playTab, #context_playSelectedTabs)::before,
:is(#context_pinTab, #context_pinSelectedTabs)::before,
:is(#context_unpinTab, #context_unpinSelectedTabs)::before,
:is(#context_duplicateTab, #context_duplicateTabs, #menu_showAllTabs)::before,
#placesContext_open\:newtab::before,
#syncedTabsOpenSelected::before,
#syncedTabsOpenSelectedInTab::before,
:is(#placesContext_openBookmarkContainer\:tabs, #placesContext_openBookmarkLinks\:tabs)::before,
:is(#placesContext_openContainer\:tabs, #placesContext_openLinks\:tabs, #syncedTabsOpenAllInTabs)::before,
#placesContext_showAllBookmarks::before,
#syncedTabsManageDevices::before,
#placesContext_open\:newwindow::before,
#syncedTabsOpenSelectedInWindow::before,
#placesContext_open\:newprivatewindow::before,
:is(#placesContext_new\:bookmark, #placesContext_createBookmark, #syncedTabsBookmarkSelected)::before,
#placesContext_new\:folder::before,
#placesContext_new\:separator::before,
:is(#placesContext_open\:container, #placesContext_openContainer\:container, #placesContext_openLinks\:container, #placesContext_open\:newcontainertab)::before,
:is(#syncedTabsOpenAllInContainer, #syncedTabsOpenSelectedInContainerTab)::before,
#bookmark-menu-container_robwu_nl-menuitem-_bookmark-menu-item:not(.menuitem-iconic)::before,
#placesContext > :is(menu, menuitem)[label="Open in New Container Tab"]:not(.menuitem-iconic)::before,
#context-markAsRead::before,
#context-markAsUnread::before,
:is(#context_bookmarkTab, #context_bookmarkSelectedTabs, #toolbar-context-bookmarkSelectedTab, #toolbar-context-bookmarkSelectedTabs)::before,
:is(#context_selectAllTabs, #toolbar-context-selectAllTabs)::before,
#menu_searchBookmarks::before,
#menu_bookmarkAllTabs::before,
#context_moveTabOptions::before,
#context_sendTabToDevice::before,
menuitem.share-tab-url-item::before,
#context_closeTabOptions::before,
#context_closeDuplicateTabs::before,
:is(#context_closeTabsToTheStart, #context_closeTabsToTheEnd, #context_closeOtherTabs)::before,
#context_undoCloseTab::before,
#toolbar-context-undoCloseTab::before,
#context_closeTab::before,
#menu_close::before,
#menu_closeWindow::before,
menuitem#menu_devToolbox:not([checked="true"])::before,
menuitem#menu_taskManager::before,
menuitem#menu_devtools_remotedebugging::before,
menuitem#menu_browserToolbox::before,
menuitem#menu_browserContentToolbox::before,
menuitem#menu_browserConsole::before,
menuitem#menu_responsiveUI:not([checked="true"])::before,
menuitem#menu_eyedropper::before,
menuitem#menu_pageSource::before,
menuitem#extensionsForDevelopers::before,
menuitem#enableDeveloperTools::before,
#context_unloadTab::before,
#menu_searchHistory::before,
#historyUndoWindowMenu::before,
#historyUndoMenu::before,
.recently-closed-windows-menu::before,
.recently-closed-tabs-menu::before,
:is(.recently-closed-windows-menu, .recently-closed-tabs-menu, #historyUndoMenu, #historyUndoWindowMenu) menuitem.restoreallitem::before,
#recently-closed-restore::before,
#recently-closed-restore-in-new-window::before,
#recently-closed-restore-in-new-private-window::before,
#recently-closed-remove-from-list::before,
#recently-closed-remove-from-history::before,
#recently-closed-bookmark::before,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType]:not([clientType=""])::before,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target.signintosync::before,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType=""][clientId=""]::before,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType=""][clientId=""] + .sendtab-target:not([clientType], [clientId])::before,
:is(#spell-add-to-dictionary, #spell-add-dictionaries, #spell-add-dictionaries-main, #spell-dictionaries)::before,
#context-showonlythisframe::before,
#contentAreaContextMenu #frame::before,
.downloadPauseMenuItem::before,
.downloadResumeMenuItem::before,
.downloadUnblockMenuItem::before,
.downloadUseSystemDefaultMenuItem::before,
.downloadShowMenuItem::before,
menuitem[data-l10n-id="downloads-cmd-go-to-download-page"]::before,
menuitem[data-l10n-id="downloads-cmd-copy-download-link"]::before,
.downloadRemoveFromHistoryMenuItem::before,
menuitem[data-l10n-id="downloads-cmd-clear-list"]::before,
menuitem[data-l10n-id="downloads-cmd-clear-downloads"]::before,
menuitem[command="downloadsCmd_deleteFile"]::before,
#context-media-pause::before,
#context-media-play::before,
#context-media-mute::before,
#context-media-unmute::before,
#context-video-fullscreen::before,
#context-leave-dom-fullscreen::before,
menuitem[data-l10n-id="full-screen-exit"]::before,
#context_moveToStart::before,
#context_moveToEnd::before,
#userScriptsMenu::before,
#toggle_PersonalToolbar::before,
menu#fill-login::before,
menuitem#manage-saved-logins::before,
menuitem#fill-login-generated-password::before,
menu[label="Bitwarden"]:not(.menuitem-iconic, .menu-iconic)::before,
#_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-menuitem-_open-manager:not(.menuitem-iconic, .menu-iconic)::before,
#_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-menuitem-_open-options:not(.menuitem-iconic, .menu-iconic)::before,
#simple-translate_sienori-menuitem-_translatePage:not(.menuitem-iconic, .menu-iconic)::before,
#_287dcf75-bec6-4eec-b4f6-71948a2eea29_-menuitem-_ViewImage-SearchByImage:not(.menuitem-iconic, .menu-iconic)::before,
#invert-element_aminomancer-menuitem-_menuitem-invert:not(.menuitem-iconic, .menu-iconic)::before,
#simple-translate_sienori-menuitem-_translateLink:not(.menuitem-iconic, .menu-iconic)::before,
#simple-translate_sienori-menuitem-_translateText:not(.menuitem-iconic, .menu-iconic)::before,
#toolbar-context-menu :is(menu, menuitem)[id^="jid1-bycqofyfmbmd9a_jetpack-menuitem"]:not(.menuitem-iconic, .menu-iconic)::before,
#ublock0_raymondhill_net-menuitem-_uBlock0-blockElement:not(.menuitem-iconic, .menu-iconic)::before,
#ublock0_raymondhill_net-menuitem-_uBlock0-blockElementInFrame:not(.menuitem-iconic, .menu-iconic)::before,
:is(menu, menuitem)[id^="multithreaded-download-manager"]:is([label="Open in new tab"], [label="Open in new window"], [label="Open in sidebar"])::before,
#menu_customizeToolbars::before,
menuitem.viewCustomizeToolbar::before,
#addon_darkreader_org-menuitem-_switchEngine:not(.menuitem-iconic)::before,
menupopup:not(#contentAreaContextMenu) > #addon_darkreader_org-menuitem-_DarkReader-top:not(.menuitem-iconic, .menu-iconic)::before,
menupopup:not(#contentAreaContextMenu) > #nordvpnproxy_nordvpn_com-menuitem-_nordvpn_extension_context_menu_group:not(.menuitem-iconic, .menu-iconic)::before,
menupopup:not(#contentAreaContextMenu) > #_7962ff4a-5985-4cf2-9777-4bb642ad05b8_-menuitem-_svg-gobbler:not(.menuitem-iconic, .menu-iconic)::before,
#_testpilot-containers-menuitem-_hide-container:not(.menuitem-iconic, .menu-iconic)::before,
#_testpilot-containers-menuitem-_move-to-new-window-container:not(.menuitem-iconic, .menu-iconic)::before,
menuitem.customize-context-removeFromToolbar::before,
menuitem.customize-context-removeFromPanel::before,
menuitem.customize-context-moveToToolbar::before,
menuitem.customize-context-moveToPanel::before,
menuitem.customize-context-addToPanel::before,
menuitem.customize-context-addToToolbar::before,
menuitem.customize-context-manageExtension::before,
menu.customize-context-debugExtension::before,
menuitem.customize-context-CopyID::before,
menuitem.customize-context-CopyURL::before,
menuitem.customize-context-Inspector::before,
menuitem.customize-context-ViewSource::before,
menuitem.customize-context-Manifest::before,
menu.customize-context-ViewDocs-Submenu::before,
menuitem.customize-context-BrowserAction::before,
menuitem.customize-context-PageAction::before,
menuitem.customize-context-SidebarAction::before,
menuitem.customize-context-Options::before,
menuitem.pageActionContextMenuItem.manageExtensionItem::before,
menuitem.customize-context-removeExtension::before,
menuitem.pageActionContextMenuItem.removeExtensionItem::before,
menuitem.customize-context-reportExtension::before,
menuitem.unified-extensions-context-menu-move-widget-up::before,
menuitem.unified-extensions-context-menu-move-widget-down::before,
menuitem.unified-extensions-context-menu-manage-extension::before,
menu.unified-extensions-context-menu-debugExtension::before,
menuitem.unified-extensions-context-menu-remove-extension::before,
menuitem.unified-extensions-context-menu-report-extension::before,
menu.unified-extensions-context-menu-debugExtension::before,
menuitem.unified-extensions-context-menu-CopyID::before,
menuitem.unified-extensions-context-menu-CopyURL::before,
menuitem.unified-extensions-context-menu-Inspector::before,
menuitem.unified-extensions-context-menu-ViewSource::before,
menuitem.unified-extensions-context-menu-Manifest::before,
menu.unified-extensions-context-menu-ViewDocs-Submenu::before,
menuitem.unified-extensions-context-menu-BrowserAction::before,
menuitem.unified-extensions-context-menu-PageAction::before,
menuitem.unified-extensions-context-menu-SidebarAction::before,
menuitem.unified-extensions-context-menu-Options::before,
.urlbarView-result-menu > menuitem[data-command="inaccurate_location"]::before,
.urlbarView-result-menu > menuitem[data-command="show_less_frequently"]::before,
.urlbarView-result-menu > menu[data-l10n-id="firefox-suggest-command-dont-show-this"]::before,
.urlbarView-result-menu > menuitem[data-command="help"]::before,
.urlbarView-result-menuitem[data-command="not_relevant"]::before,
.urlbarView-result-menuitem[data-command="not_interested"]::before,
.urlbarView-result-menu > menuitem[data-command="dismiss"]::before {
  content: "" !important;
  position: relative;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  padding-inline: 0 !important;
  margin-inline: var(--context-iconic-margin);
  fill: currentColor;
  -moz-context-properties: fill, fill-opacity, stroke;
  background-position: center;
  background-size: 16px;
  background-repeat: no-repeat;

  /* revert the needsgutter styling */
  display: revert !important;
  vertical-align: revert !important;
  line-height: revert !important;
  visibility: visible !important;
}

#context_moveToStart::before,
#context_moveToEnd:-moz-locale-dir(rtl)::before {
  background-image: url(chrome://userchrome/content/skin/back.svg);
  background-size: 15px;
}

#context_moveToEnd::before,
#context_moveToStart:-moz-locale-dir(rtl)::before {
  background-image: url(chrome://userchrome/content/skin/forward.svg);
  background-size: 15px;
}

:is(#context_openTabInWindow, #menu_newNavigator)::before {
  background-image: url(chrome://userchrome/content/skin/new-window.svg);
}

#context-video-saveimage::before {
  background-image: url(chrome://userchrome/content/notifications/canvas.svg);
}

.downloadPauseMenuItem::before,
#context-media-pause::before {
  background-image: url(chrome://userchrome/content/material/pause.svg);
}

.downloadResumeMenuItem::before,
#context-media-play::before {
  background-image: url(chrome://userchrome/content/playButton.svg);
}

.downloadUnblockMenuItem::before {
  background-image: url(chrome://userchrome/content/downloads/downloads.svg);
}

.downloadUseSystemDefaultMenuItem::before {
  background-image: url(chrome://userchrome/content/skin/device-desktop.svg);
}

.downloadShowMenuItem::before {
  background-image: url(chrome://userchrome/content/material/places/folder-open.svg);
}

menuitem[data-l10n-id="downloads-cmd-go-to-download-page"]::before {
  background-image: url(chrome://userchrome/content/skin/new-tab.svg);
}

menuitem[data-l10n-id="downloads-cmd-copy-download-link"]::before {
  background-image: url(chrome://userchrome/content/skin/link.svg);
}

.downloadRemoveFromHistoryMenuItem::before {
  background-image: url(chrome://userchrome/content/skin/forget.svg);
}

menuitem[data-l10n-id="downloads-cmd-clear-list"]::before,
menuitem[data-l10n-id="downloads-cmd-clear-downloads"]::before {
  background-image: url(chrome://userchrome/content/skin/close-window.svg);
}

menuitem[command="downloadsCmd_deleteFile"]::before {
  background-image: url(chrome://userchrome/content/delete-file.svg);
}

#context-media-mute::before {
  background-image: url(chrome://userchrome/content/audioMutedButton.svg);
}

#context-media-unmute::before {
  background-image: url(chrome://userchrome/content/audioUnmutedButton.svg);
}

#context-video-fullscreen::before {
  background-image: url(chrome://userchrome/content/skin/fullscreen.svg);
}

#context-leave-dom-fullscreen::before {
  background-image: url(chrome://userchrome/content/skin/fullscreen-exit.svg);
}

menuitem[data-l10n-id="full-screen-exit"]::before {
  background-image: url(chrome://userchrome/content/skin/fullscreen-exit.svg);
}

#context-media-playbackrate::before {
  background-image: url(chrome://userchrome/content/performance.svg);
}

#context-viewvideo::before {
  background-image: url(chrome://userchrome/content/skin/tab-play.svg);
}

#context-media-showcontrols::before {
  background-image: url(chrome://userchrome/content/material/show-controls.svg);
}

#context-media-hidecontrols::before {
  background-image: url(chrome://userchrome/content/material/hide-controls.svg);
}

#context-showonlythisframe::before {
  background-image: url(chrome://userchrome/content/skin/fullscreen.svg);
}

#contentAreaContextMenu #frame::before {
  fill-opacity: 0.3;
  background-image: url(chrome://userchrome/content/devtools/command-frames.svg);
}

:is(#context-printframe, #context-print-selection, #menu_print)::before {
  background-image: url(chrome://global/skin/icons/print.svg);
}

#menu_printPreview::before {
  background-image: url(chrome://userchrome/content/show-password.svg);
}

:is(#menu_printSetup, #menu_readerModeItem)::before {
  background-image: url(chrome://userchrome/content/skin/readerMode.svg);
  background-size: 14.8px 16px;
}

#menu_importFromAnotherBrowser::before {
  background-image: url(chrome://userchrome/content/skin/import.svg);
}

#context-frameOsPid::before {
  background-image: url(chrome://userchrome/content/devtools/tool-memory.svg);
}

:is(#context-reloadframe, #context-reloadimage, #userScriptsMenu-Restart)::before {
  background-image: url(chrome://userchrome/content/skin/reload.svg);
}

#context-inspect::before {
  background-image: url(chrome://userchrome/content/devtools/tool-inspector.svg);
}

/* hide "Inspect Accessibility Properties" */
#context-inspect-a11y {
  display: none !important;
}

/* or just shorten the label */
#context-inspect-a11y::before {
  background-position: left center;
  content: "Inspect Accessibility";
  padding-inline-start: 22px;
  background-image: url(chrome://userchrome/content/devtools/tool-accessibility.svg);
}

#context-inspect-a11y .menu-text {
  visibility: collapse;
}

:is(#context-viewframesource, #context-viewpartialsource-selection, #context-viewsource)::before {
  background-image: url(chrome://userchrome/content/devtools/tool-dom.svg);
}

menuitem#menu_openDownloads::before {
  background-image: url(chrome://userchrome/content/downloads/downloads.svg);
}

menuitem#menu_openAddons::before,
#addon_darkreader_org-menuitem-_toggle:not(.menuitem-iconic)::before {
  background-image: url(chrome://mozapps/skin/extensions/extension.svg);
}

menuitem#menu_openUserChrome::before {
  background-image: url(chrome://browser/skin/trending.svg);
}

#private-relay_firefox_com-menuitem-_fx-private-relay-generate-alias:not(.menuitem-iconic)::before {
  background-image: url(chrome://userchrome/content/material/new-address.svg);
}

#private-relay_firefox_com-menuitem-_fx-private-relay-use-existing-aliases-from-this-site:not(.menuitem-iconic)::before {
  background-image: url(chrome://userchrome/content/skin/reload.svg);
}

#private-relay_firefox_com-menuitem-_fx-private-relay-use-existing-aliases:not(.menuitem-iconic)::before {
  background-image: url(chrome://userchrome/content/material/contact-mail.svg);
}

#private-relay_firefox_com-menuitem-_fx-private-relay-manage-aliases:not(.menuitem-iconic)::before {
  background-image: url(chrome://userchrome/content/settings.svg);
}

:is(#contentAreaContextMenu, #toolbar-context-menu) menu:not(.menu-iconic, .menuitem-iconic)[id^="gitzip-firefox-addons_gitzip_org-menuitem-"]::before {
  background-image: url(chrome://userchrome/content/material/zipper.svg);
}

menuitem:is(#sync-setup, #sync-unverifieditem)::before {
  background-image: url(chrome://userchrome/content/fxa/avatar.svg);
}

menuitem#sync-reauthitem::before {
  background-image: url(chrome://userchrome/content/fxa/avatar-alert.svg);
}

menuitem:is(#sync-enable, #sync-syncnowitem)::before {
  background-image: url(chrome://userchrome/content/skin/sync.svg);
}

menuitem#menu_openFirefoxView::before {
  background-image: var(--uc-firefox-view-icon);
}

menu#browserToolsMenu:not(.menu-iconic)::before {
  background-image: url(chrome://userchrome/content/skin/developer.svg);
}

:is(#context-viewframeinfo, #context-viewinfo, #context-viewimageinfo, #menu_pageInfo)::before {
  background-image: url(chrome://userchrome/content/info-filled.svg);
}

menuitem#menu_preferences::before,
:is(#new-tab-button-popup, .new-tab-popup) menuitem[command="Browser:OpenAboutContainers"]::before {
  background-image: url(chrome://userchrome/content/settings.svg);
}

/* menu bar > help menu */
menuitem#menu_openHelp::before {
  background-image: url(chrome://userchrome/content/help-solid.svg);
}

menuitem#feedbackPage::before {
  background-image: url(chrome://userchrome/content/material/rate.svg);
}

menuitem#helpSafeMode::before {
  background-image: url(chrome://userchrome/content/material/diagnostic.svg);
}

menuitem#troubleShooting::before {
  background-image: url(chrome://userchrome/content/material/system-report.svg);
}

menuitem#help_reportBrokenSite::before {
  background-image: url(chrome://userchrome/content/material/bug.svg);
}

menuitem#menu_HelpPopup_reportPhishingtoolmenu::before {
  background-image: url(chrome://userchrome/content/material/phishing.svg);
  stroke: currentColor !important;
  -moz-context-properties: fill, fill-opacity, stroke !important;
}

menuitem#menu_HelpPopup_reportPhishingErrortoolmenu::before {
  background-image: url(chrome://userchrome/content/material/verified.svg);
}

menuitem#aboutName::before {
  background-image: url(chrome://userchrome/content/identity-icons-brand.svg);
}

menuitem#helpPolicySupport::before {
  background-image: url(chrome://userchrome/content/help-square.svg);
}

:is(#context-setDesktopBackground, #context-viewbgimage)::before {
  background-image: url(chrome://userchrome/content/notifications/canvas.svg);
}

:is(#context-savepage, menu#pageStyleMenu, #addon_darkreader_org-menuitem-_addSite:not(.menuitem-iconic))::before {
  background-image: url(chrome://userchrome/content/document.svg);
}

#viewFullZoomMenu::before,
#helpSwitchDevice::before {
  background-image: url(chrome://userchrome/content/fxa/add-device.svg);
}

#menu_zoomEnlarge::before {
  background-image: url(chrome://userchrome/content/skin/zoom-in.svg);
}

#menu_zoomReduce::before {
  background-image: url(chrome://userchrome/content/skin/zoom-out.svg);
}

#menu_zoomReset::before {
  background-image: url(chrome://userchrome/content/devtools/command-rulers.svg);
}

#viewToolbarsMenu::before {
  background-image: url(chrome://userchrome/content/skin/controlcenter/dashboard.svg);
}

#viewSidebarMenuMenu::before {
  background-image: url(chrome://userchrome/content/skin/sidebars-right.svg);
}

/* view > sidebar menu */
menupopup#viewSidebarMenu menuitem:is([type="checkbox"], [type="radio"]):not([checked="true"], .webextension-menuitem:not(.menuitem-iconic)) .menu-icon {
  display: revert;
  fill: currentColor;
  -moz-context-properties: fill, fill-opacity;
}

menupopup#viewSidebarMenu menuitem:is([type="checkbox"], [type="radio"]):not([checked="true"], .webextension-menuitem:not(.menuitem-iconic)) .menu-iconic-icon {
  display: revert !important;
}

menupopup#viewSidebarMenu menuitem:is([type="checkbox"], [type="radio"]):not([checked="true"], .webextension-menuitem:not(.menuitem-iconic))::before {
  display: none;
}

/* check for the english label in case user doesn't have my script miscMods
obviously that will only work for english firefox, so if you use another
language, you should download miscMods.uc.js since it will dynamically set a
universal attribute that we can select irrespective of target language. */
#sidebar-reverse-position:is([label="Move Sidebar to Left"], [to-position="left"])::before {
  background-image: url(chrome://userchrome/content/skin/back.svg);
  background-size: 15px;
}

#sidebar-reverse-position:is([label="Move Sidebar to Right"], [to-position="right"])::before {
  background-image: url(chrome://userchrome/content/skin/forward.svg);
  background-size: 15px;
}

#sidebarMenu-popup > menuitem:is([type="checkbox"], [type="radio"]):is(:not(.webextension-menuitem), [style]):not([checked="true"])::before {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin-inline: var(--context-iconic-margin);
  border-radius: 0;
  border: 0;
  background-color: transparent;
  color: inherit;
}

menupopup#viewSidebarMenu #menu_bookmarksSidebar:is([type="checkbox"], [type="radio"]):not([checked="true"]) {
  list-style-image: url(chrome://userchrome/content/skin/bookmark.svg) !important;
}

#sidebarMenu-popup > menuitem#sidebar-switcher-bookmarks:is([type="checkbox"], [type="radio"]):not([checked="true"])::before {
  background-image: url(chrome://userchrome/content/skin/bookmark.svg);
}

menupopup#viewSidebarMenu #menu_historySidebar:is([type="checkbox"], [type="radio"]):not([checked="true"]) {
  list-style-image: url(chrome://userchrome/content/skin/history.svg) !important;
}

#sidebarMenu-popup > menuitem#sidebar-switcher-history:is([type="checkbox"], [type="radio"]):not([checked="true"])::before {
  background-image: url(chrome://userchrome/content/skin/history.svg);
}

menupopup#viewSidebarMenu #menu_tabsSidebar:is([type="checkbox"], [type="radio"]):not([checked="true"]) {
  list-style-image: url(chrome://userchrome/content/skin/synced-tabs.svg) !important;
}

#sidebarMenu-popup > menuitem#sidebar-switcher-tabs:is([type="checkbox"], [type="radio"]):not([checked="true"])::before {
  background-image: url(chrome://userchrome/content/skin/synced-tabs.svg);
}

menupopup#viewSidebarMenu #menu_genaiChatSidebar:is([type="checkbox"], [type="radio"]):not([checked="true"]) {
  list-style-image: url(chrome://browser/content/genai/assets/brands/chatgpt.svg) !important;
}

#sidebarMenu-popup > menuitem#sidebar-switcher-genai-chat:is([type="checkbox"], [type="radio"]):not([checked="true"])::before {
  background-image: url(chrome://browser/content/genai/assets/brands/chatgpt.svg);
}

#sidebarMenu-popup > menuitem[data-l10n-id="sidebar-menu-close"]::before {
  background-image: url(chrome://userchrome/content/close-big.svg);
}

#menu_showAllHistory::before {
  background-image: url(chrome://userchrome/content/skin/history.svg);
}

menuitem#sanitizeItem::before {
  background-image: url(chrome://userchrome/content/skin/forget.svg);
}

:is(#syncedTabsRefresh, #syncedTabsRefreshFilter)::before {
  background-image: url(chrome://userchrome/content/skin/sync.svg);
}

#sync-tabs-menuitem::before {
  background-image: url(chrome://userchrome/content/skin/synced-tabs.svg);
}

#historyRestoreLastSession::before {
  background-image: url(chrome://userchrome/content/skin/restore-session.svg);
}

#hiddenTabsMenu::before {
  background-image: url(chrome://userchrome/content/hide-password.svg);
}

#context-selectall,
#context-pdfjs-selectall,
#menu_selectAll,
#menu_selectall,
.textbox-contextmenu menuitem[data-l10n-id="text-action-select-all"] {
  &::before {
    background-image: url(chrome://userchrome/content/material/select-forward.svg);
  }
}

#context-sendaudio,
#context-sendimage,
#context-sendvideo,
#menu_sendLink {
  &::before {
    background-image: url(chrome://userchrome/content/skin/mail.svg);
  }
}

#context-savevideo,
#context-saveaudio,
#context-saveframe,
#context-saveimage,
#context-savelink,
#menu_savePage {
  &::before {
    background-image: url(chrome://userchrome/content/material/places/folder-save.svg);
  }
}

#menu_openFile::before {
  background-image: url(chrome://userchrome/content/material/places/folder-open.svg);
}

#context-savelinktopocket::before {
  background-image: url(chrome://userchrome/content/skin/pocket-outline.svg);
}

#context-pocket::before {
  background-image: url(chrome://userchrome/content/skin/pocket-outline.svg);
}

#context-take-frame-screenshot,
#context-take-screenshot {
  &::before {
    background-image: var(--screenshot-icon);
  }
}

#context-viewimage::before {
  background-image: url(chrome://userchrome/content/notifications/canvas.svg);
}

#context-copyimage-contents,
#context-copy,
#context-pdfjs-copy,
#menu_copy,
#placesContext_copy,
#syncedTabsCopySelected,
.textbox-contextmenu menuitem[data-l10n-id="text-action-copy"],
menuitem.customize-context-CopyID,
menuitem.unified-extensions-context-menu-CopyID {
  &::before {
    background-image: url(chrome://userchrome/content/skin/edit-copy.svg);
  }
}

menuitem.unified-extensions-context-menu-move-widget-up::before {
  background-image: url(chrome://userchrome/content/find-previous-arrow.svg);
}

menuitem.unified-extensions-context-menu-move-widget-down::before {
  background-image: url(chrome://userchrome/content/find-next-arrow.svg);
}

:is(#placesContext_show_bookmark\:info, #placesContext_show_folder\:info, #placesContext_show\:info)::before {
  background-image: url(chrome://userchrome/content/edit.svg);
}

#placesContext_showInFolder::before {
  background-image: url(chrome://userchrome/content/material/places/folder-special.svg);
}

:is(#context-cut, #context-pdfjs-cut, #menu_cut, #placesContext_cut)::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-cut"]::before {
  background-image: url(chrome://userchrome/content/skin/edit-cut.svg);
}

:is(#context-paste, #context-pdfjs-paste, #menu_paste, #placesContext_paste, #placesContext_paste_group)::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-paste"]::before {
  background-image: url(chrome://userchrome/content/skin/edit-paste.svg);
}

.textbox-contextmenu menuitem:is([anonid="paste-and-go"], #paste-and-go, .searchbar-paste-and-search)::before {
  background-image: url(chrome://userchrome/content/skin/edit-paste-and-go.svg);
}

#context-paste-no-formatting::before {
  background-image: url(chrome://userchrome/content/skin/edit-paste-clear.svg);
}

:is(#placesContext_deleteBookmark, #placesContext_deleteFolder, #placesContext_delete, #placesContext_delete_history)::before {
  background-image: url(chrome://userchrome/content/delete.svg);
}

:is(#context-delete, #context-pdfjs-delete, #menu_delete)::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-delete"]::before {
  background-image: url(chrome://userchrome/content/material/backspace-solid.svg);
}

.searchbar-clear-history::before {
  background-image: url(chrome://userchrome/content/devtools/clear.svg);
}

#context-copyemail::before {
  background-image: url(chrome://userchrome/content/skin/mail.svg);
}

:is(#context-copyvideourl, #context-copyaudiourl, #context-copyimage, #context-copylink, #menu_openLocation, menuitem.customize-context-CopyURL, menuitem.unified-extensions-context-menu-CopyURL)::before {
  background-image: url(chrome://userchrome/content/skin/link.svg);
}

:is(#context-stripOnShareLink, #strip-on-share)::before {
  background-image: url(chrome://userchrome/content/glyph-highlights-16.svg) !important;
}

:is(#context-bookmarkframe, #context-bookmarklink)::before {
  background-image: url(chrome://userchrome/content/skin/add-bookmark.svg);
}

:is(#placesContext_openBookmarkContainer\:tabs, #placesContext_openBookmarkLinks\:tabs)::before {
  background-image: url(chrome://userchrome/content/material/places/folder-special.svg);
}

:is(#context-openframeintab, #context-openlinkintab, #context_openANewTab, #toolbar-context-openANewTab, #menu_newNavigatorTab, #placesContext_open\:newtab, #syncedTabsOpenSelectedInTab)::before {
  background-image: url(chrome://userchrome/content/skin/new-tab.svg);
}

:is(#context-openlinkinunloadedtab, #placesContext_open\:unloaded, #placesContext_openContainer\:unloaded, #placesContext_openLinks\:unloaded, #syncedTabsOpenUnloaded)::before {
  background-image: url(chrome://userchrome/content/skin/new-unloaded.svg);
}

:is(#context-openlinkincurrent, #placesContext_open, #syncedTabsOpenSelected)::before {
  background-image: url(chrome://userchrome/content/skin/tab.svg);
}

:is(#placesContext_open\:container, #placesContext_openContainer\:container, #placesContext_openLinks\:container, #placesContext_open\:newcontainertab)::before,
:is(#syncedTabsOpenAllInContainer, #syncedTabsOpenSelectedInContainerTab)::before,
#bookmark-menu-container_robwu_nl-menuitem-_bookmark-menu-item:not(.menuitem-iconic)::before,
#placesContext > :is(menu, menuitem)[label="Open in New Container Tab"]:not(.menuitem-iconic)::before,
#context-openlinkincontainertab::before {
  background-image: url(chrome://userchrome/content/skin/container-go.svg);
}

:is(#context-openlinkinusercontext-menu, #menu_newUserContext)::before {
  background-image: url(chrome://userchrome/content/skin/container-go.svg);
}

:is(#context-openframe, #context-openlink, #placesContext_open\:newwindow, #syncedTabsOpenSelectedInWindow)::before {
  background-image: url(chrome://userchrome/content/skin/new-window.svg);
}

:is(#context-openlinkprivate, #menu_newPrivateWindow, #placesContext_open\:newprivatewindow, #syncedTabsOpenSelectedInPrivateWindow)::before {
  background-image: url(chrome://userchrome/content/skin/new-private.svg);
}

:is(#placesContext_new\:bookmark, #placesContext_createBookmark, #syncedTabsBookmarkSelected)::before {
  background-image: url(chrome://userchrome/content/skin/add-bookmark.svg);
}

#placesContext_new\:folder::before {
  background-image: url(chrome://userchrome/content/material/places/folder-add.svg);
}

#placesContext_new\:separator::before {
  background-image: url(chrome://userchrome/content/skin/add-separator.svg);
}

#syncedTabsManageDevices::before {
  background-image: url(chrome://userchrome/content/fxa/add-device.svg);
}

:is(#context-searchselect, #context-searchselect-private, #menu_find, #menu_searchBookmarks, #menu_searchHistory)::before {
  background-image: url(chrome://userchrome/content/search-glass.svg);
}

#context-translate-selection::before {
  background-image: url(chrome://browser/skin/translations.svg);
}

#context-ask-chat::before {
  background-image: url(chrome://userchrome/content/engines/chatgpt.svg);
}

#menu_findAgain::before {
  background-image: url(chrome://userchrome/content/skin/forward.svg);
  background-size: 15px;
}

:is(menuitem#textfieldDirection-swap, #context-bidi-text-direction-toggle, #context-bidi-page-direction-toggle, #documentDirection-swap)::before {
  background-image: url(chrome://userchrome/content/material/textdirection.svg);
}

menuitem#repair-text-encoding::before {
  background-image: url(chrome://userchrome/content/skin/characterEncoding.svg);
}

#context-viewsource-goToLine::before,
#placesContext_sortBy\:name::before {
  background-image: url(chrome://userchrome/content/skin/sort.svg);
}

#context-undo,
#context-pdfjs-undo,
#context_undoCloseTab,
#toolbar-context-undoCloseTab,
#menu_undo,
#undobookmarksmenuUndo,
#context-redo,
#context-pdfjs-redo,
#menu_redo,
#undobookmarksmenuRedo,
.textbox-contextmenu menuitem:is([data-l10n-id="text-action-undo"], [data-l10n-id="text-action-redo"]) {
  &::before {
    background-image: url(chrome://userchrome/content/undo.svg);
  }
}

#placesContext_deleteHost::before {
  background-image: url(chrome://userchrome/content/skin/forget.svg);
}

#context-keywordfield::before {
  background-image: url(chrome://userchrome/content/material/filter-css.svg);
}

#context_reopenInContainer::before {
  background-image: url(chrome://userchrome/content/skin/container-go.svg);
}

:is(#context_reloadTab, #context_reloadSelectedTabs, #toolbar-context-reloadSelectedTab, #toolbar-context-reloadSelectedTabs)::before {
  background-image: url(chrome://userchrome/content/skin/reload.svg);
}

:is(#context_toggleMuteTab, #context_toggleMuteSelectedTabs)::before {
  background-image: url(chrome://userchrome/content/audioMutedButton.svg);
}

:is(#context_toggleMuteTab, #context_toggleMuteSelectedTabs)[muted="true"]::before {
  background-image: url(chrome://userchrome/content/audioUnmutedButton.svg);
}

:is(#context_playTab, #context_playSelectedTabs)::before {
  background-image: url(chrome://userchrome/content/playButton.svg);
}

:is(#context_pinTab, #context_pinSelectedTabs)::before {
  background-image: url(chrome://userchrome/content/material/pin-315.svg);
}

:is(#context_unpinTab, #context_unpinSelectedTabs)::before {
  background-image: url(chrome://userchrome/content/material/unpin-315.svg);
}

:is(#placesContext_openContainer\:tabs, #placesContext_openLinks\:tabs, #syncedTabsOpenAllInTabs)::before,
:is(#context_duplicateTab, #context_duplicateTabs, #menu_showAllTabs)::before {
  background-image: url(chrome://userchrome/content/skin/duplicate-tab.svg);
}

#placesContext_showAllBookmarks::before {
  background-image: url(chrome://userchrome/content/skin/library.svg);
}

#context-markAsUnread::before {
  background-image: url(chrome://userchrome/content/skin/mark-tab-unread.svg);
}

#context-markAsRead::before {
  background-image: url(chrome://userchrome/content/skin/mark-tab-read.svg);
}

:is(#context_selectAllTabs, #toolbar-context-selectAllTabs)::before {
  background-image: url(chrome://userchrome/content/devtools/tool-styleeditor.svg);
}

#menu_bookmarkAllTabs::before {
  background-image: url(chrome://userchrome/content/glyph-highlights-16.svg);
}

:is(#context_bookmarkTab, #context_bookmarkSelectedTabs, #toolbar-context-bookmarkSelectedTab, #toolbar-context-bookmarkSelectedTabs)::before {
  background-image: url(chrome://userchrome/content/skin/add-bookmark.svg);
}

#context_moveTabOptions::before {
  background-image: url(chrome://userchrome/content/skin/move-tab.svg);
}

menuitem.share-tab-url-item::before {
  background-image: url(chrome://userchrome/content/skin/share.svg);
}

:is(#context_closeTab, #menu_close)::before {
  background-image: url(chrome://userchrome/content/skin/close-tabs.svg);
}

#context_closeTabOptions::before {
  background-image: url(chrome://userchrome/content/skin/close-tabs-mult.svg);
}

#context_closeDuplicateTabs::before {
  background-image: url(chrome://userchrome/content/skin/close-tabs-duplicate.svg);
}

#context_closeTabsToTheStart::before,
#context_closeTabsToTheEnd:-moz-locale-dir(rtl)::before {
  background-image: url(chrome://userchrome/content/skin/select-left.svg);
}

#context_closeTabsToTheEnd::before,
#context_closeTabsToTheStart:-moz-locale-dir(rtl)::before {
  background-image: url(chrome://userchrome/content/skin/select-right.svg);
}

#context_closeOtherTabs::before {
  background-image: url(chrome://userchrome/content/skin/select-around.svg);
}

#menu_closeWindow::before {
  background-image: url(chrome://userchrome/content/skin/close-window.svg);
}

menuitem#menu_devToolbox:not([checked="true"])::before {
  background-image: url(chrome://userchrome/content/devtools/debugging-workers.svg) !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: revert !important;
}

menuitem#menu_taskManager::before {
  background-image: url(chrome://userchrome/content/devtools/tool-profiler.svg);
}

menuitem#menu_devtools_remotedebugging::before {
  background-image: url(chrome://userchrome/content/material/remote.svg);
}

menuitem#menu_browserToolbox::before {
  background-image: url(chrome://userchrome/content/skin/toolbox.svg);
}

menuitem#menu_browserContentToolbox::before {
  background-image: url(chrome://userchrome/content/devtools/command-frames.svg);
  fill-opacity: 0;
}

menuitem#menu_browserConsole::before {
  background-image: url(chrome://userchrome/content/devtools/command-console.svg);
}

menuitem#menu_responsiveUI:not([checked="true"])::before {
  background-image: url(chrome://userchrome/content/devtools/command-responsivemode.svg) !important;
  background-color: transparent !important;
  fill-opacity: 0 !important;
  border: none !important;
  border-radius: revert !important;
}

menuitem#menu_eyedropper::before {
  background-image: url(chrome://userchrome/content/devtools/command-eyedropper.svg);
}

menuitem#menu_pageSource::before {
  background-image: url(chrome://userchrome/content/devtools/tool-dom.svg);
}

menuitem#extensionsForDevelopers::before {
  background-image: url(chrome://userchrome/content/mozilla-logo.svg);
}

menuitem#enableDeveloperTools::before {
  background-image: url(chrome://userchrome/content/skin/developer.svg);
}

#context_unloadTab::before,
#menu_FileQuitItem::before,
#syncedTabsOpenAllUnloaded::before {
  background-image: url(chrome://userchrome/content/skin/quit.svg);
}

/* menuitems added by recentlyClosedTabsContextMenu.uc.js */
/* these are for the tab context menu's submenus */
#historyUndoWindowMenu::before,
.recently-closed-windows-menu::before {
  background-image: url(chrome://userchrome/content/skin/window.svg);
}

#historyUndoMenu::before,
.recently-closed-tabs-menu::before {
  background-image: url(chrome://userchrome/content/skin/tab.svg);
}

:is(.recently-closed-windows-menu, .recently-closed-tabs-menu, #historyUndoMenu, #historyUndoWindowMenu) menuitem.restoreallitem::before {
  background-image: url(chrome://userchrome/content/skin/restore-session.svg);
}

#recently-closed-restore::before {
  background-image: url(chrome://userchrome/content/skin/restore-session.svg);
}

/* for the context menu that appears when you right-click a recently closed tab/window item in the history panel */
#recently-closed-restore-in-new-window::before {
  background-image: url(chrome://userchrome/content/skin/new-window.svg);
}

#recently-closed-restore-in-new-private-window::before {
  background-image: url(chrome://userchrome/content/skin/new-private.svg);
}

#recently-closed-remove-from-list::before {
  background-image: url(chrome://userchrome/content/delete.svg);
}

#recently-closed-remove-from-history::before {
  background-image: url(chrome://userchrome/content/skin/forget.svg);
}

#recently-closed-bookmark::before {
  background-image: url(chrome://userchrome/content/skin/add-bookmark.svg);
}

:is(#context_sendTabToDevice, #context-sendlinktodevice, #context-sendpagetodevice)::before {
  background-image: url(chrome://userchrome/content/skin/send-to-device.svg);
}

#context-copyphone::before,
:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target:is([clientType="phone"], [clientType="mobile"])::before {
  background-image: url(chrome://userchrome/content/skin/device-phone.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType="tablet"]::before {
  background-image: url(chrome://userchrome/content/skin/device-tablet.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType="desktop"]::before {
  background-image: url(chrome://userchrome/content/skin/device-desktop.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType="tv"]::before {
  background-image: url(chrome://userchrome/content/skin/device-tv.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType="vr"]::before {
  background-image: url(chrome://userchrome/content/skin/device-vr.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target.signintosync::before {
  background-image: url(chrome://userchrome/content/skin/sync.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType=""][clientId=""]::before {
  background-image: url(chrome://userchrome/content/chevron.svg);
}

:is(#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice) .sendtab-target[clientType=""][clientId=""] + .sendtab-target:not([clientType], [clientId])::before {
  background-image: url(chrome://userchrome/content/fxa/add-device.svg);
}

:is(menu, menuitem)[id^="multithreaded-download-manager"]:is([label="Open in new tab"], [label="Open in new window"], [label="Open in sidebar"]) .menu-icon {
  display: none;
}

:is(menu, menuitem)[id^="multithreaded-download-manager"][label="Open in new tab"]::before {
  background-image: url(chrome://userchrome/content/skin/tab.svg);
}

:is(menu, menuitem)[id^="multithreaded-download-manager"][label="Open in new window"]::before {
  background-image: url(chrome://userchrome/content/skin/window.svg);
}

:is(menu, menuitem)[id^="multithreaded-download-manager"][label="Open in sidebar"]::before {
  background-image: url(chrome://userchrome/content/skin/sidebars-right.svg);
}

#userScriptsMenu::before {
  background-image: url(chrome://userchrome/content/material/javascript.svg);
}

#toggle_PersonalToolbar::before {
  background-image: url(chrome://browser/skin/places/bookmarksToolbar.svg);
}


menu#fill-login::before,
menuitem#manage-saved-logins::before,
menuitem#fill-login-generated-password::before {
  background-image: url(chrome://userchrome/content/skin/login.svg);
}

:is(#spell-add-to-dictionary, #spell-add-dictionaries, #spell-add-dictionaries-main)::before {
  background-image: url(chrome://userchrome/content/skin/readerMode.svg);
}

#spell-dictionaries::before {
  background-image: url(chrome://userchrome/content/places/defaultFavicon.svg);
}

#menu_customizeToolbars::before,
menuitem.viewCustomizeToolbar::before,
#addon_darkreader_org-menuitem-_switchEngine:not(.menuitem-iconic)::before {
  background-image: url(chrome://browser/skin/customize.svg);
}

#_testpilot-containers-menuitem-_hide-container:not(.menuitem-iconic, .menu-iconic)::before {
  background-image: url(chrome://userchrome/content/hide-password.svg);
}

#_testpilot-containers-menuitem-_move-to-new-window-container:not(.menuitem-iconic, .menu-iconic)::before {
  background-image: url(chrome://userchrome/content/skin/new-window.svg);
}

menuitem:is(.customize-context-removeFromToolbar, .customize-context-removeFromPanel)::before {
  background-image: url(chrome://userchrome/content/undo.svg);
}

menuitem.customize-context-moveToToolbar::before {
  background-image: url(chrome://userchrome/content/material/unpin-315.svg);
}

menuitem.customize-context-moveToPanel::before {
  background-image: url(chrome://userchrome/content/material/pin-315.svg);
}

menuitem.customize-context-addToToolbar::before {
  background-image: url(chrome://userchrome/content/add.svg);
}

menuitem.customize-context-addToPanel::before {
  background-image: url(chrome://userchrome/content/chevron.svg);
}

menuitem:is(.customize-context-manageExtension, .pageActionContextMenuItem.manageExtensionItem, .unified-extensions-context-menu-manage-extension)::before {
  background-image: url(chrome://userchrome/content/skin/developer.svg);
}

menu.customize-context-debugExtension::before,
menu.unified-extensions-context-menu-debugExtension::before {
  background-image: url(chrome://userchrome/content/devtools/debugging-workers.svg);
}

menuitem.customize-context-Manifest::before,
menuitem.unified-extensions-context-menu-Manifest::before {
  background-image: url(chrome://userchrome/content/devtools/tool-styleeditor.svg);
}

menuitem.customize-context-Inspector::before,
menuitem.unified-extensions-context-menu-Inspector::before {
  background-image: url(chrome://userchrome/content/devtools/tool-inspector.svg);
}

menuitem.customize-context-ViewSource::before,
menuitem.unified-extensions-context-menu-ViewSource::before {
  background-image: url(chrome://userchrome/content/material/places/folder-source.svg);
}

menu.customize-context-ViewDocs-Submenu::before,
menu.unified-extensions-context-menu-ViewDocs-Submenu::before {
  background-image: url(chrome://userchrome/content/document.svg);
}

menuitem.customize-context-BrowserAction::before,
menuitem.unified-extensions-context-menu-BrowserAction::before {
  background-image: url(chrome://userchrome/content/devtools/command-noautohide.svg);
}

menuitem.customize-context-PageAction::before,
menuitem.unified-extensions-context-menu-PageAction::before {
  background-image: url(chrome://userchrome/content/skin/readerMode.svg);
}

menuitem.customize-context-SidebarAction::before,
menuitem.unified-extensions-context-menu-SidebarAction::before {
  background-image: url(chrome://userchrome/content/skin/sidebars.svg);
}

menuitem.customize-context-Options::before,
menuitem.unified-extensions-context-menu-Options::before {
  background-image: url(chrome://userchrome/content/settings.svg);
}

menuitem:is(.customize-context-removeExtension, .pageActionContextMenuItem.removeExtensionItem, .unified-extensions-context-menu-remove-extension)::before {
  background-image: url(chrome://userchrome/content/material/extension-blocked.svg);
}

menuitem:is(.customize-context-reportExtension, .unified-extensions-context-menu-report-extension)::before {
  background-image: url(chrome://devtools/skin/images/alert.svg);
}

.urlbarView-result-menu > menuitem[data-command="inaccurate_location"]::before {
  background-image: url(chrome://userchrome/content/material/bug.svg);
}

.urlbarView-result-menu > menuitem[data-command="show_less_frequently"]::before {
  background-image: url(chrome://global/skin/icons/trending.svg);
  transform: scaleY(-1);
}

.urlbarView-result-menu > menu[data-l10n-id="firefox-suggest-command-dont-show-this"]::before {
  background-image: url(chrome://userchrome/content/blocked.svg);
}

.urlbarView-result-menuitem[data-command="not_relevant"]::before {
  background-image: url(chrome://userchrome/content/close-big.svg);
}

.urlbarView-result-menuitem[data-command="not_interested"]::before {
  background-image: url(chrome://userchrome/content/material/dislike.svg);
}

.urlbarView-result-menu > menuitem[data-command="help"]::before {
  background-image: url(chrome://userchrome/content/info-filled.svg);
}

.urlbarView-result-menu > menuitem[data-command="dismiss"]::before {
  background-image: url(chrome://userchrome/content/delete.svg);
}

/* mirror some of the icons for RTL languages/layouts, e.g. icons with arrows or other directional implications */
:is(#context-reloadframe, #context-reloadimage, #userScriptsMenu-Restart):-moz-locale-dir(rtl)::before,
:is(#context_sendTabToDevice, #context-sendlinktodevice, #context-sendpagetodevice):-moz-locale-dir(rtl)::before,
:is(#context-undo, #context_undoCloseTab, #toolbar-context-undoCloseTab, #menu_undo, #undobookmarksmenuUndo):-moz-locale-dir(rtl)::before,
:is(#context_reloadTab, #context_reloadSelectedTabs, #toolbar-context-reloadSelectedTab, #toolbar-context-reloadSelectedTabs):-moz-locale-dir(rtl)::before,
:is(#context-redo, #context-pdfjs-redo, #menu_redo, #undobookmarksmenuRedo):-moz-locale-dir(ltr)::before,
menuitem:is(.customize-context-removeFromToolbar, .customize-context-removeFromPanel):-moz-locale-dir(rtl)::before,
.textbox-contextmenu menuitem:is([anonid="paste-and-go"], #paste-and-go, .searchbar-paste-and-search):-moz-locale-dir(rtl)::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-undo"]:-moz-locale-dir(rtl)::before,
.textbox-contextmenu menuitem[data-l10n-id="text-action-redo"]:-moz-locale-dir(ltr)::before,
#placesContext_deleteHost:-moz-locale-dir(rtl)::before,
menuitem#sanitizeItem:-moz-locale-dir(rtl)::before,
.downloadRemoveFromHistoryMenuItem:-moz-locale-dir(rtl)::before {
  transform: scaleX(-1);
}

.urlbarView-result-menu > menuitem[data-command="show_less_frequently"]:-moz-locale-dir(rtl)::before {
  /* this already has scaleY(-1) so it needs both axes inverted */
  transform: scale(-1);
}
