Git Product home page Git Product logo

simplemenuwizard's Introduction

simpleMenuWizard

Hide default context menu items in Firefox Proton (89+) release versions


Instructions

To remove entries from the context menu you need to

  1. Find your profile folder (profile names are different for everyone):
    Address bar > Enter about:support > Click Open Folder (second one, not the "Update Folder").

  2. Download this project and unzip it.

  3. Move userChrome.css and simpleMenuWizard into [...]\profile folder\chrome\ directory.
    If chrome folder doesn't exist, create it.
    If userChrome.css already exists, do not overwrite and proceed here.

  4. Open userChrome.css with a texteditor for a general overview and some options.

  5. Open the simpleMenuWizard directory and edit each .css file to customize them to your needs.
    Remove menu item: Remove /* at the beginning of the line.
    Leave menu item: Add /* to the beginning of the line (by default every option is deactivated).

    Each file is for another context:

    • blank-context.css when right-clicking on a blank area or text
    • frame-context.css when right-clicking on an iframe
    • image-context.css when right-clicking on an image
    • input-context.css when right-clicking on an input-field
    • link-context.css when right-clicking on a link
    • main-hamburger.css when left-clicking on the three lines on top right
    • main-menubar.css when left-clicking on the main menubar (open with ALT key - file, edit, view, ...)
    • media-context.css when right-clicking on media like audio or html5 video
    • newtab-containers.css when right-clicking on the plus sign to open a new tab or container
    • select-context.css when right-clicking on selected text or object
    • sidebar-context.css when right-clicking on items in bookmark- or history sidebar
    • sidebar-header.css when left-clicking the sidebar dropdown menu
    • source-context.css when right-clicking a blank area on view-source pages
    • tab-context.css when right-clicking on a tab
    • toolbar-context.css when right-clicking on toolbar or tabbar
    • urlbar-context.css when right-clicking on the addressbar
  6. Load about:config into addressbar. Search for toolkit.legacyUserProfileCustomizations.stylesheets and make sure the value is true.

  7. Restart Firefox to make changes work.

Important notes:

  • All options and items are disabled by default, so if you don't edit the files, nothing will happen.
  • If you're running macOS and Firefox 89+, make sure you set widget.macos.native-context-menus to false otherwise it won't work.
  • Items that appear in different contexts with the same ID will disappear in all those contexts when activated only once. This is because many menus internally share the same very big context menu and are separated here for convenience.
    For specific problems please open an issue, there may be workarounds.

Hide Pocket / Sync / Screenshots

If you don't use either of those "internal addons" at all, you can just disable them, which will also remove their context menu entries everywhere.

How to do it: Load about:config into addressbar and set the respective value.

  • Pocket: Search for extensions.pocket.enabled and switch to false.
  • Sync: Search for identity.fxaccounts.enabled and switch to false.
  • Screenshots: Search for extensions.screenshots.disabled and switch to true.

Using simpleMenuWizard together with other custom modifications

Easiest thing to do is renaming the userChrome.css that came with the zip package of simpleMenuWizard. Rename it to simpleMenuWizard.css and put it into chrome directory next to the already existing userChrome.css.

Open the old userChrome.css which is filled with foreign code and add @import url("./simpleMenuWizard.css"); to the very top. That's it!

You can now edit simpleMenuWizard.css for a general overview and some options or continue with step 5.

Uninstall simpleMenuWizard

Delete all the files and folders that came with this project.
So if you don't use other modifications, you can simply delete the whole [...]\profile folder\chrome\ directory.
Restart your browser.

Contribute

For bugreports and missing items you're welcome to open an issue here or make a pull request.

Motivation

Tidy up your context menus, be faster, have a cleaner UI!

This project is inspired by BubiBalboa's post on reddit and by an issue in the great CustomCSSforFx project.

simplemenuwizard's People

Contributors

cennoxx avatar e-t-l avatar godfat avatar senpaisharp avatar stonecrusher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simplemenuwizard's Issues

PageActionsMenu: MacOS sharing URL

FF61 Changelog:

Share links from Firefox for MacOS more easily: You can now share the URL of an active tab from the page actions menu in the address bar

I don't have MacOS available and can't see the identifier. Help appreciated.

Restore Previous Session

#appMenuRestoreSession, /* Restore Previous Session */

I can't remove this button anymore, did something change in Firefox regarding it? Maybe its name changed? dunno, can you help please?

Doesn't work on firefox-beta?

Readme state it should work on ff 89+ but on firefox-beta Mozilla Firefox 90.0b7, it does not work.

(I'm using it on firefox-esr just fine)

Struggling to remove specific separator in Context Menu through blank-context.css

I'm trying out simpleMenuWizard, but I'm having a minor issue.

When I edit blank-context.css, I managed to easily remove all but one of the separators in my Context Menu by following your documented instructions. But when I try to remove the last separator that appears under Inspect Element (Q) I fail to hide it. I assume I'm supposed to remove the /* in front of #context-inspect + menuseparator:not([id]), but doing so does not successfully hide the separator.

I doubt my old userChrome.css interferes with the context menu, and I'm unsure how to remove the final separator. Do you have any ideas?

context menu

blank-context

userChrome

Typo

/* #tabContextMenu #context_shareTabURL */ /* Share tab URL via 3rd party app */

the */ after #context_shareTabURL is misplaced

Re-order menu items?

Simply put... is it possible to use this to re-order the context menu options? For instance, I actually use the Pocket feature a lot and want it to appear first when I right-click on a link. I moved #context-savelinktopocket to the top of the in the link-context.css file but it had no effect. Would love to find a way to do this! Thanks!

screenshot

can you deactivate this somehow?
But I think that's a feature of Firefox

1

text-link-context.css

Test

	https://github.com/stonecrusher/simpleMenuWizard/issues/new

#context-openlinkincurrent

Simply removing a "/*" will not let a rule work.

Trying this out and discovered that the CSS will not work unless the last item of a rule does not end in a comma. To make editing the files easier, you could put a dummy selector as the last item:

  /* image-context.css */
  
  /* #context-reloadimage,			/* Reload Image */
  /* #context-viewimage,				/* View Image */
  /* #context-copyimage-contents,		/* Copy Image */
  /* #context-copyimage,				/* Copy Image Location */
  /* #context-sep-copyimage,			/******* Separator *******/
  /* #context-saveimage,				/* Save Image As... */
   #context-sendimage,				/* Email Image... */
   #context-setDesktopBackground,	/* Set As Desktop Background... */
  /* #context-viewimageinfo,			/* View Image Info */
  /* #inspect-separator,				/******* Separator *******/
  /* #context-inspect,				/* Inspect Element (Q) */
  /* #context-contentAreaContextMenu > menuseparator:nth-child(92), /** Separator **/
  /* #ublock0_raymondhill_net_uBlock0-blockElement	/* Block element (by uBlock addon) */
   #dummy
  	{ display:none !important; }

changes to the image context menu

I was noticing a double set of separators in my context menu and so I found that Firefox had some changes in its image context menu. For example "View Image Info" no longer seems to exist. #context-sep-copyimage also does not exist but there is now a #context-sep-setbackground. Also the order of the items has changed some.

I attached a copy of the new image-context.css (renamed to txt).

image-context.txt

New entries in tab context menu

Hi,

there are some new entries and separators in the tab context menu which are not in your tab-context.css, e.g. context_moveTabOptions.

Remove #context-sep-navigation, doesn't work properly?

I have these settings in my blank-content.css:

#context-navigation,
#context-sep-navigation,
#context-pocket,
#leave_this_dummy_here
    { display:none !important; }

I expect when I click right mouse I won't see first ---- delimitor of Save Page As...

expected behavior:

Save Page As...
----------------------    <- bottom delimiter 

current behavior:

----------------------
Save Page As...
----------------------

Problem when 'hiding all inactive' is enabled

Firefox 58.0.1 64bit

Everything works as advertised so long as the 'Hide all inactive menu items' option remains disabled.

If the existing 'Hide all inactive menu items' is enabled, however, all subsequent imports are effectively ignored. Moving the option after all of the imports is a work around.

Duplicate context entry for link-context and search-context

Both link-context.css and search-context.css contain the same entry for

#context-searchselect, /* Search [Google] for "[selected]" */

which when enabled disables the 'Search [Google] for "[selected]" from both right click on selected text, and right click on links. There should be a way to toggle each one individually if they are contained within separate sheets

FF broke url and tab bars

Nothing changes when i edit this items:

  • tab-context.css
  • toolbar-context.css
  • urlbar-context.css
  • urlbar-pageaction.css

version 80.0.1 release

Can't remove New Private Window menu item in Mac

Hello, I'm new here.
I'm using Mac OS X mavericks and recently installed FF Quantum. I think it is FF 62. I would like to remove the menu item 'New Private Window's but was unsuccessful.
I could remove the button from the hamburger menu though and also the right click context menu.
I have tried experimenting in Windows FF 62 and I could remove the menu items that I want. But in Mac OS X I couldn't.
If anyone knows please help me please. Thanks and much appreciated.

Drop down menus

There used to be legacy extensions called "Menu Filter" https://addons.thunderbird.net/en-us/firefox/addon/menu-filter/reviews/801081 and "Menu Wizard" http://forums.mozillazine.org/viewtopic.php?f=48&t=2828771 that did exactly this but also had the ability to remove items from all of the drop down menus as well. Sadly they have both been depricated with version 57+ without rewrites.

Is it possible to extend the same functionality you have here for firefox context menus to all of the drop down menus as well?

Cheers and keep up the great work.

Place a separator in specific position?

I already checked all topics here with advices on how to rearrange items, but i still can't understand how to put separator in specific position. As i see all separators are "connected" to some commands and "ought to follow" them.
Yet here comes "problem" of { -moz-box-ordinal-group: 1 !important; } = when several items are in same group, the order is "group" is not controllable.(or is it in some way?) While editing i had several times situation when i have
item1
item2
item2_separator
item3
item4
item5
item5_separator
item6

and however i try i couldn't make it
item2
item1
separator
item3
separator
item5

So is there some way to put separator in specific position after any item? And how to arrange items in same { -moz-box-ordinal-group: X !important; } ?(or how they are arranged automatically)

Close Sidebar Button not hiding

Hi!
Thanks for keeping up this great project.
I just wonder if there is something wrong with line 17 in sidebar-header.css, as I cannot get Close Sidebar Button removed/hidden in my FF 72.0.2 (64-bit).

Cheers,
Farshad

Hiding 'Synced Tabs' option on sidebar menu

Hi,

I'm using this helpful and so well carried out simpleMenuWizard (latest 1.3) together with Aris-t2'
Custom CSS and Custom Scrollbar .

I'm wondering if there's a Firefox 57+ menu item simpleMenuWizard could handle.
Firefox Show Sidebars toolbar button displays the sidebar on which there is a button to trigger a drop-down list which includes natively Bookmarks, History, Synced Tabs.

I'd wish to hide this Synced Tabs option since I don't use Firefox Sync.

Thanks for your work @stonecrusher

uBlock does not disappear

I removed '/*' at the beginning of the line '@import url("./simpleMenuWizard/opt_uBO.css");', but uBlock is still everywhere.
Everything else is working, e.g. I deleted some of my installed addons from the context menu and some entries from link-context.css, select-context.css and tab-context.css.

Is it necessary to do something else?

Howto disable/remove blank context menu — include ff actions?

I can wipe out all components in blank context menu and whenever I right click in an empty space, it'll create a dot (ff tries to create/open the context) and must left click to dismiss it to use other functions like scroll page.

How to completely remove blank context menu for even exist?

I tried to seach context and bank in ff config but don't find any options to disable it.

Thanks a lot.

I had a hard time finding this program.
I wanted to edit the menu.
Thank you so much.
:)

Can't remove the navigation bar from context menu FF 59.0.2

Hi, I'm trying to remove the whole navigation bar with icons from the right click context menu, but for some reason i can't get it to work. If i uncomment the first line nothing happens, tried uncommenting each line separately, still no results. What am i missing here? How would the working config look like?

Problem with loading settings

I recently re-installed my windows and Firefox. Then I copied my settings as before but nothing was changed. I googled and found out that I have to change the setting of firefox to get it loaded in recent version of FF.
I changed "kit.legacyUserProfileCustomizations.stylesheets" in "about:config" to True and it worked as before. Maybe you'd better mention in the the description page.

Source : https://www.youtube.com/watch?v=J0NDzs9PsIg , comment from a user named Grillo

remove "OneTab" from context menu

I don't see anything in the options, I was hoping maybe you had some wisdom to share. Might you know how I can disable the "OneTab" from the (R) click context menu?

image

Just wanted to thank you

Thanks, this helped me track down items I wasn't able to find before. Now if I could only figure out how to hide, "Show sidebars" and "View history, saved bookmarks, and more" toolbar icons.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.