Skip to content

[Page context menu] CSS for removing items (share code here) #76

Closed

Description

@qusielle

There is a cool manual to remove waste items from context menus: https://www.reddit.com/r/firefox/comments/7dvtw0/guide_how_to_edit_your_context_menu/
Could you include this to your project?
And thank you so much for your custom css! This is why i returned to FF.

Activity

  1. Aris-t2 commented on Nov 30, 2017

    @Aris-t2
    Owner

    There are about 94 items inside that context menu, if you count menuitems, menus and separators (excluding installed add-ons).

    The mentioned list only covers the parts for "page context" and "link context" and misses the rest: media/video, images, marked text etc.
    I'm not going to include the full list, but also not only some part of it, sorry.

  2. stonecrusher commented on Nov 30, 2017

    @stonecrusher
    Contributor

    Aris is right, it covers just roughly 1/3 of the menu items available.
    But it covers the most common / annoying items and would have been helpful to me, too, as I had to inspect everything by myself to find the right selectors.

    Maybe we could provide the link to the tutorial on "Other projects"? If the reddit post is not updated, I'm seriously thinking about opening that as GitHub project, providing a rudimental substitute for MenuWizard addon.

    edit

    On the other hand, we already have

    /* edit target file to select which items to hide ***********************************************/
    @import url(./css/tabs/tab_context_menuitems_visibility.css); /**/

    and

    @import url(./css/generalui/send_to_device_menuitems_hidden.css); /**/

    and

    @import url(./css/toolbars/toolbar_context_menuitems_visibility.css); /**/

    in this project.

  3. Aris-t2 commented on Dec 2, 2017

    @Aris-t2
    Owner

    The first and third are basically ports of CTR options.

    The second one is there, because its a stupid Firefox issue to show this item when sync is not used.

    A file to manage all 94 entries of page context menu would be 580 lines long. I doubt anybody would like to go through that amount of code to just find a specific item.

  4. stonecrusher commented on Dec 2, 2017

    @stonecrusher
    Contributor

    I doubt anybody would like to go through that amount of code

    Of course it will be divided in blank context menu, link context menu, image context menu, video context menu and so on.

  5. Aris-t2 commented on Dec 2, 2017

    @Aris-t2
    Owner

    Feel free to create those files.

  6. stonecrusher commented on Dec 3, 2017

    @stonecrusher
    Contributor

    For sure it's not complete (e.g. I couldn't reach any dictionary and spellchecking related context menus) but should be enough for the moment to cover most of the possible items.

    Feel free to copy and adapt.

    https://github.com/stonecrusher/simpleMenuWizard

  7. changed the title [-]Add css for removing items from context menu, please[/-] [+][Page context menu] CSS for removing items (share code here)[/+] on Dec 3, 2017
  8. stonecrusher commented on Dec 3, 2017

    @stonecrusher
    Contributor

    @userOperaFF Yes, I've made an update to simpleMenuWizard.

    But in this case, it's actually just one line in userChrome.css to hide all disabled items:

    #mainPopupSet menuitem[disabled="true"] { display: none !important; }
  9. stonecrusher commented on Dec 6, 2017

    @stonecrusher
    Contributor

    I don't know where you have those separators from. Between Inspect Element and Block element is just one separator for me and no further item.

    From the sourcecode the only things that might be in between are

    #context-media-eme-separator,
    #context-media-eme-learnmore  /* Learn more about DRM... */
       { display:none !important; }

    You can try that code, see if it helps.
    Otherwise it's something you changed or from addons. Try to disable each respectively and see what happens.

    I guess both uBlock and bitwarden add a separator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions