Removing annoying click-handling logic from websites
There are a lot of websites out there that block your ability to right click or select text. I believe it's done as a sort of half-assed security measure to prevent people from copying text or images. Of course, it's always possible to circumvent that by using DevTools, it's just more time-consuming and annoying.
Here are a couple of examples, sorry for the Hebrew:
-
On this store, I wanted to select and copy the product name (Behringer MicroMix MX400), but there's "protection" against marking text, right-clicking and possibly copying.
-
On my broker's website I wanted to right-click the username field so I could do "inspect element" on it, but it won't let me. I was still able to find the element manually in DevTools, but it took more time.
-
Some websites do let you copy text, but they add their own custom text snippets to the text you copy, usually with a link to that site. Very annoying.
I assume that these "protections" are implemented by listening to events such as clicks and ctrl-C.
Is there a solution for disabling all these annoying "protections" from websites? (specifically in Chrome).
I have found all these extensions for Chrome. One of them surely will work for you:
- Enable Copy (300,000+ users)
- Absolute Enable Right Click & Copy (80,000+ users)
- Enable Right Click (60,000+ users)
- Allow Right-Click (2,000+ users)
(Seems like this annoyance has motivated many developers.)
I have been using the FF version of this extension and it works fine:
Absolute Enable Right Click & Copy
As part of uBlock Origin
which many (over 10 million) people are using (including myself) and is the de-facto best ad-blocker available. You can simply disable javascript for the site, which allows you to select and copy-paste the text.
Just click this button:
If you don't mind removing all event listeners from the current page:
- Open Chrome Dev Tools (Ctrl+Shift+I) and select Console
- Type the following to remove all event listeners:
$("*").off();
- Alternatively, to remove all right-click listeners:
$("*").off("contextmenu");
It's a good way to do that particular task without installing any 3rd party add-ons.