Skip to content

Commit

Permalink
v2.0 (FF89)
Browse files Browse the repository at this point in the history
Rewrite for Firefox 89.
FF 89 has redesigned "Photon" interface.
Release 2021-06-01
  • Loading branch information
stonecrusher committed May 21, 2021
1 parent 22b9322 commit fb8bf9f
Show file tree
Hide file tree
Showing 21 changed files with 495 additions and 597 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# simpleMenuWizard
Hide default context menu items in Firefox 57 and later (latest FF release version)
Hide default context menu items in Firefox Proton (89+)

---

Expand All @@ -12,13 +12,13 @@ To **remove entries from the context menu** you need to

2. [Download this project](https://github.com/stonecrusher/simpleMenuWizard/archive/master.zip) and unzip it.

3. Move `userChrome.css` and `simpleMenuWizard` into *[...]\\**profile.folder**\chrome\\* directory.
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](https://github.com/stonecrusher/simpleMenuWizard#using-simplemenuwizard-together-with-other-custom-modifications).

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

5. Open the `simpleMenuWizard` directory and edit each .css file (except beginning with `opt_`) to customize them to your needs.
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).

Expand All @@ -39,7 +39,6 @@ To **remove entries from the context menu** you need to
* `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
* `urlbar-pageaction.css` when **left**-clicking the three dots in the addressbar

6. Load `about:config` into addressbar. Search for `toolkit.legacyUserProfileCustomizations.stylesheets` and make sure the value is `true`.

Expand Down Expand Up @@ -71,7 +70,7 @@ You can now edit `simpleMenuWizard.css` for a general overview and some options
## 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.
So if you don't use other modifications, you can simply delete the whole `[...]\profile folder\chrome\` directory.
Restart your browser.

## Contribute
Expand Down
46 changes: 20 additions & 26 deletions simpleMenuWizard/blank-context.css
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
/*AGENT_SHEET*/

/*********************************************************************************************
simpleMenuWizard: Firefox 57+ userChrome.css tweaks to remove context menu items.
simpleMenuWizard: Firefox 89+ userChrome.css tweaks to remove context menu items.
https://github.com/stonecrusher/simpleMenuWizard
**********************************************************************************************
/*** blank-context.css ***/

/* #context-navigation, /* Hide whole navigation bar */
/* #context-back, /* Navi: Back arrow */
/* #context-forward, /* Navi: Forward arrow */
/* #context-reload, /* Navi: Reload icon -
combined position with stop icon */
/* #context-stop, /* Navi: Stop icon (x) -
combined position with reload icon */
/* #context-bookmarkpage, /* Navi: Bookmark star icon */
/* #context-sep-navigation, /************** Separator ***************/
/* #context-savepage, /* Save Page As... */
/* #context-pocket, /* Save Page to Pocket */
/* #context-sep-sendpagetodevice, /************** Separator ***************/
/* #context-sendpagetodevice, /* Send Page to Device */
/* #context-sep-viewbgimage, /************** Separator ***************/
/* #context-viewbgimage, /* View Background Image */
/* #context-selectall, /* Select All */
/* #context-sep-viewsource, /************** Separator ***************/
/* #context-viewsource, /* View Page Source */
/* #context-viewinfo, /* View Page Info */
/* #inspect-separator, /************** Separator ***************/
/* #context-inspect, /* Inspect Element (Q) */
/* #context-media-eme-separator, /************** Separator ***************/
/* #context-media-eme-learnmore, /* Learn more about DRM… */
/* #context-media-eme-learnmore + menuseparator:not([id]), /************** Separator ***************/
/* #screenshots_mozilla_org-menuitem-_create-screenshot, /* Take a Screenshot */
/* #context-navigation, /* Hide whole navigation bar */
/* #context-back, /* Navi: Back arrow */
/* #context-forward, /* Navi: Forward arrow */
/* #context-reload, /* Navi: Reload icon -
combined position with stop icon */
/* #context-stop, /* Navi: Stop icon (x) -
combined position with reload icon */
/* #context-bookmarkpage, /* Navi: Bookmark star icon */
/* #context-sep-navigation, /************** Separator ***************/
/* #context-savepage, /* Save Page As... */
/* #context-pocket, /* Save Page to Pocket */
/* #context-selectall, /* Select All */
/* #context-sep-selectall, /************** Separator ***************/
/* #context-take-screenshot, /* Take Screenshot */
/* #context-sep-screenshots, /************** Separator ***************/
/* #context-viewsource, /* View Page Source */
/* #context-inspect, /* Inspect (Q) */
/* #context-media-eme-separator, /************** Separator ***************/
/* Here are context menus of addons */

#leave_this_dummy_here
{ display:none !important; }
33 changes: 16 additions & 17 deletions simpleMenuWizard/frame-context.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
/*AGENT_SHEET*/

/*********************************************************************************************
simpleMenuWizard: Firefox 57+ userChrome.css tweaks to remove context menu items.
simpleMenuWizard: Firefox 89+ userChrome.css tweaks to remove context menu items.
https://github.com/stonecrusher/simpleMenuWizard
**********************************************************************************************
/*** frame-context.css ***/

/*** "This Frame" in context menu ***/
/* #frame,
/*** "This Frame" submenu items ***/
/* #context-showonlythisframe, /* Show Only This Frame */
/* #context-openframeintab, /* Open Frame in New Tab */
/* #context-openframe, /* Open Frame in New Window */
/* #open-frame-sep, /******** Separator *********/
/* #context-reloadframe, /* Reload Frame */
/* #context-reloadframe + menuseparator, /******** Separator *********/
/* #context-bookmarkframe, /* Bookmark This Frame */
/* #context-saveframe, /* Save Frame As... */
/* #context-saveframe + menuseparator, /******** Separator *********/
/* #context-printframe, /* Print Frame... */
/* #context-printframe + menuseparator, /******** Separator *********/
/* #context-viewframesource, /* View Frame Source */
/* #context-viewframeinfo, /* View Frame Info */
/* menu#frame, /* This Frame */
/* #context-showonlythisframe, /* Show Only This Frame */
/* #context-openframeintab, /* Open Frame in New Tab */
/* #context-openframe, /* Open Frame in New Window */
/* #open-frame-sep, /******** Separator *********/
/* #context-reloadframe, /* Reload Frame */
/* #context-reloadframe + menuseparator, /******** Separator *********/
/* #context-bookmarkframe, /* Bookmark This Frame */
/* #context-saveframe, /* Save Frame As… */
/* #context-saveframe + menuseparator, /******** Separator *********/
/* #context-printframe, /* Print Frame… */
/* #context-printframe + menuseparator, /******** Separator *********/
/* #context-viewframesource, /* View Frame Source */
/* #context-viewframeinfo, /* View Frame Info */
/* #spell-separator, /*** Separator ***/

#leave_this_dummy_here
{ display:none !important; }
24 changes: 11 additions & 13 deletions simpleMenuWizard/image-context.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
/*AGENT_SHEET*/

/*********************************************************************************************
simpleMenuWizard: Firefox 57+ userChrome.css tweaks to remove context menu items.
simpleMenuWizard: Firefox 89+ userChrome.css tweaks to remove context menu items.
https://github.com/stonecrusher/simpleMenuWizard
**********************************************************************************************
/*** image-context.css ***/

/* #context-reloadimage, /* Reload Image */
/* #context-viewimage, /* View Image */
/* #context-saveimage, /* Save Image As... */
/* #context-copyimage-contents, /* Copy Image */
/* #context-copyimage, /* Copy Image Location */
/* #context-sendimage, /* Email Image... */
/* #context-viewimagedesc, /* View Description */
/* #context-sep-setbackground, /************ Separator *************/
/* #context-setDesktopBackground, /* Set As Desktop Background... */
/* #inspect-separator, /************ Separator *************/
/* #context-inspect-a11y, /* Inspect Accessibility Properties */
/* #context-inspect, /* Inspect Element (Q) */
/* #context-reloadimage, /* Reload Image */
/* #context-viewimage, /* Open Image in New Tab */
/* #context-saveimage, /* Save Image As… */
/* #context-copyimage-contents, /* Copy Image */
/* #context-copyimage, /* Copy Image Link */
/* #context-sendimage, /* Email Image… */
/* #context-sep-setbackground, /************ Separator ************/
/* #context-setDesktopBackground, /* Set As Desktop Background... */
/* #context-sep-ctp, /************ Separator ************/
/* #context-inspect, /* Inspect (Q) */

#leave_this_dummy_here
{ display:none !important; }
55 changes: 29 additions & 26 deletions simpleMenuWizard/input-context.css
Original file line number Diff line number Diff line change
@@ -1,37 +1,40 @@
/*AGENT_SHEET*/

/*********************************************************************************************
simpleMenuWizard: Firefox 57+ userChrome.css tweaks to remove context menu items.
simpleMenuWizard: Firefox 89+ userChrome.css tweaks to remove context menu items.
https://github.com/stonecrusher/simpleMenuWizard
**********************************************************************************************
/*** input-context.css ***/

/* #spell-no-suggestions, /* (No Spelling Suggestions) */
/* menuitem.spell-suggestion, /* ~ List of spelling suggestions ~ */
/* #spell-add-to-dictionary, /* Add To Dictionary */
/* #spell-undo-add-to-dictionary, /* Undo Add To Dictionary */
/* #spell-suggestions-separator, /************ Separator *************/
/* #context-undo, /* Undo */
/* #context-sep-undo, /************ Separator *************/
/* #context-cut, /* Cut */
/* #context-copy, /* Copy */
/* #context-paste, /* Paste */
/* #context-delete, /* Delete */
/* #context-sep-paste, /************ Separator *************/
/* #context-selectall, /* Select All */
/* #context-keywordfield, /* Add a Keyword for this Search… */
/* #spell-separator, /************ Separator *************/
/* #spell-check-enabled, /* Check Spelling */
/* #spell-add-dictionaries-main, /* Add Dictionaries… */
/* #spell-dictionaries, /* Languages */
/* #context-sep-bidi, /************ Separator *************/
/* #context-bidi-text-direction-toggle, /* Switch Text Direction */
/* #context-bidi-page-direction-toggle, /* Switch Page Direction */
/* #fill-login-separator, /************ Separator *************/
/* #fill-login, /* Fill Login */
/* #inspect-separator, /************ Separator *************/
/* #context-inspect, /* Inspect Element (Q) */
/* #spell-no-suggestions, /* (No Spelling Suggestions) */
/* menuitem.spell-suggestion, /* ~ List of spelling suggestions ~ */
/* #spell-add-to-dictionary, /* Add To Dictionary */
/* #spell-undo-add-to-dictionary, /* Undo Add To Dictionary */
/* #spell-suggestions-separator, /************ Separator *************/
/* #context-undo, /* Undo */
/* #context-redo, /* Redo */
/* #context-sep-redo, /************ Separator *************/
/* #context-cut, /* Cut */
/* #context-copy, /* Copy */
/* #context-paste, /* Paste */
/* #context-delete, /* Delete */
/* #context-selectall, /* Select All */
/* #context-sep-selectall, /************ Separator *************/
/* #context-keywordfield, /* Add a Keyword for this Search… */
/* #spell-separator, /************ Separator *************/
/* #spell-check-enabled, /* Check Spelling */
/* #spell-dictionaries, /* Languages */
/* #spell-check-dictionary-en-US, /* English (United States) */
/* #spell-language-separator, /************ Separator *************/
/* #spell-add-dictionaries-main, /* Add Dictionaries… */
/* #context-sep-bidi, /************ Separator *************/
/* #context-bidi-text-direction-toggle, /* Switch Text Direction */
/* #context-bidi-page-direction-toggle, /* Switch Page Direction */
/* #fill-login-separator, /************ Separator *************/
/* #fill-login, /* Fill Login */
/* #inspect-separator, /************ Separator *************/
/* #context-inspect, /* Inspect (Q) */

#leave_this_dummy_here
{ display:none !important; }
32 changes: 17 additions & 15 deletions simpleMenuWizard/link-context.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
/*AGENT_SHEET*/

/*********************************************************************************************
simpleMenuWizard: Firefox 57+ userChrome.css tweaks to remove context menu items.
simpleMenuWizard: Firefox 89+ userChrome.css tweaks to remove context menu items.
https://github.com/stonecrusher/simpleMenuWizard
**********************************************************************************************
/*** link-context.css ***/

/* #context-openlinkintab, /* Open Link in New Tab */
/* #context-openlinkinusercontext-menu, /* Open Link in New Container Tab */
/* #context-openlink, /* Open Link in New Window */
/* #context-openlinkprivate, /* Open Link in New Private Window */
/* #context-sep-open, /************ Separator *************/
/* #context-bookmarklink, /* Bookmark This Link */
/* #context-savelink, /* Save Link As... */
/* #context-savelinktopocket, /* Save Link to Pocket */
/* #context-copylink, /* Copy Link Location */
/* #context-searchselect, /* Search [Google] for "[selected]" */
/* #context-sep-sendlinktodevice, /************ Separator *************/
/* #context-sendlinktodevice, /* Send Link to Device */
/* #inspect-separator, /************ Separator *************/
/* #context-inspect, /* Inspect Element (Q) */
/* #context-openlinkintab, /* Open Link in New Tab */
/* #context-openlinkinusercontext-menu, /* Open Link in New Container Tab */
/* #context-openlink, /* Open Link in New Window */
/* #context-openlinkprivate, /* Open Link in New Private Window */
/* #context-sep-open, /************ Separator *************/
/* #context-bookmarklink, /* Bookmark Link */
/* #context-savelink, /* Save Link As… */
/* #context-savelinktopocket, /* Save Link to Pocket */
/* #context-copyemail, /* Copy Email Address */
/* #context-copylink, /* Copy Link */
/* #context-sendlinktodevice, /* Send Link to Device */
/* #context-sep-sendlinktodevice, /************ Separator *************/
/* #context-sep-copylink, /************ Separator *************/
/* #context-searchselect, /* Search [Google] for "[selected]" */
/* #frame-sep, /************ Separator *************/
/* #context-inspect, /* Inspect (Q) */

#leave_this_dummy_here
{ display:none !important; }
Loading

0 comments on commit fb8bf9f

Please sign in to comment.