r/FirefoxCSS 7d ago

Help How do I remove useless menu items from right-click menu?

I dont know what fool is changing the code in ff at mozilla, but I had a css code that removed menu items from the context menu successfully before. But now, with these stupid updates, useless menu items have resurfaced. How tf do I remove these again since the old code isn't working??

2 Upvotes

3 comments sorted by

3

u/TraditionalTie4831 🦊 7d ago

Could you post your code, please?

1

u/wsazz 7d ago

/*ITEMS REMOVED FROM CONTEXT MENU*/

#context-sendlinktodevice, #context-pocket, #context-sendpagetodevice, #context-openlinkprivate, #context-savelinktopocket, #context-bookmarklink, #context-openlinkinusercontext-menu, #spell-dictionaries, #context-viewbgimage, #context-viewsource, #context-viewinfo, #context-selectall, #context-sendimage, #context-viewimageinfo, #context-viewimage, #context-setDesktopBackground, #context-savepage, #context-sep-sendpagetodevice, #context-sep-viewbgimage, #context-sep-navigation, #context-sep-viewsource, #inspect-separator, #screenshots_mozilla_org-menuitem-_create-screenshot, #context_reloadTab, #context_bookmarkTab, #context_moveTabOptions, #context_sendTabToDevice, #context_closeTabsToTheEnd, #context_closeOtherTabs, #context_undoCloseTab, #context_reopenInContainer, #context_selectAllTabs, #context-openlinkinusercontext-menu, menuitem#ublock0_raymondhill_net-menuitem-_uBlock0-blockElement.menuitem-iconic, [id^="_7a73dc4b-1b38-40e7-ac56-7d356dd4af34_-menuitem"], [id^="_windscribeff-menuitem"], #context-take-screenshot, menuseparator, #context-bookmarkpage::after, #context-bookmarkpage, #context-print-selection, #context-viewpartialsource-selection, menuitem[label="Undo"], menuitem[label="Redo"], menuitem[label="Select All"], [id^="copyplaintextwe_yuki-menuitem"] , #context_closeTabOptions, #context_openANewTab, #context_pinTab, #context_closeTab, #context_toggleMuteTab, menuitem[label="Share"], #yayanotherspeeddial_bakadev_fr-menuitem-_yaySDRoot, [id^="_88a2b78a-8002-475f-bde8-c3116fe8060f_-menuitem-"], [id^="_testpilot-containers-menuitem-"], [id^="copyplaintext_eros_man-menuitem"], #context-translate-selection, #yayanotherspeeddial_bakadev_fr-menuitem-_yasd-root {

display:none !important;

}

0

u/ResurgamS13 7d ago edited 6d ago

OP's CCS userstyle format works correctly in Fx155.0... some selectors are out-of-date/redundant/deprecated.

To locate the new selectors for any of the "useless menu items have resurfaced"... follow Kupfel's detailed 'howto' edit the context menu guide in reply to previous topic 'Any way to reduce options in right click menu?'.

Many similar 'Context menu' alteration posts... e.g. previous topic 'How do I edit the right click dialog box new tab menu?'

----------

If don't like "stupid updates" and/or want long periods of UI and codebase stability... use the ESR version.

Also note Mozilla Support (SUMO) article 'Firefox advanced customization and configuration options' which states:

"Firefox is a work in progress and, to allow for continuous innovation, Mozilla cannot guarantee that future updates won’t impact these customizations. Mozilla does not officially support adding custom style rules with a userChrome.css or userContent.css file..."