
Loading…
The "Block Element" isn't shown on all context menus #273
Mikey1993
commented
Mikey1993
commented
Addition: it's not only textboxes, I'm not able to select textareas as well..
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Scenario:
I want to block a textbox element on a page.
For example:
https://crowdin.com/project/ublock
But when enabling the Context Menu option in the settings, I am not given the "Block Element" in the menu when right clicking it.
Pic:

I have then tried to pack the extension with a small change that did it for me.
It's line 82 in /js/contextmenu.js which made it work:
contexts: ['all'],
(instead of the contexts that were there before)
I haven't tested it through, so I don't know if it introduces some other bugs or unintentional places where the "Block element" would appear on right clicking, but I think you get what I am trying to point here.