stonecrusher / simpleMenuWizard

Hide contextmenu items in Firefox Photon
MIT License
384 stars 31 forks source link

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

Closed Illern69 closed 4 years ago

Illern69 commented 4 years ago

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

stonecrusher commented 4 years ago

Hey, thanks for the detailed request. You're right. Something changed. Please try

#context-inspect ~ menuseparator:not([id]),

instead of the one with a + in the middle.

Illern69 commented 4 years ago

That worked like a charm! Thanks for the help and the speedy reply.

stonecrusher commented 4 years ago

Well it's not a perfect solution as it will remove more "unclassified" separators that might follow. But considering the current one didn't work at all and Mozilla might change stuff again down there, it's a reasonable approach. Changed it in the repo.