Removing annoying click-handling logic from websites

8,385

Solution 1

I have found all these extensions for Chrome. One of them surely will work for you:

(Seems like this annoyance has motivated many developers.)

Solution 2

I have been using the FF version of this extension and it works fine:

Absolute Enable Right Click & Copy

Solution 3

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: enter image description here

Solution 4

If you don't mind removing all event listeners from the current page:

  1. Open Chrome Dev Tools (Ctrl+Shift+I) and select Console
  2. Type the following to remove all event listeners: $("*").off();
  3. 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.

Solution 5

NoScript should help you with most websites which mess with context menus and other annoying things that mess with website experience. It auto-blocks all scripts which it considers unsafe. You can also manually experiment with it for specific sites. This should also prevent clipboard modification.

enter image description here

You can individually prevent specific scripts from running on each site with this extension. It works on next-pro pretty well.

ScriptSafe is another alternative with a different UI.

Share:
8,385
Ram Rachum
Author by

Ram Rachum

Israeli Python developer.

Updated on September 18, 2022

Comments

  • Ram Rachum
    Ram Rachum over 1 year

    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:

    1. 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.

    2. 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.

    3. 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).

  • TJL
    TJL almost 4 years
  • Tuomas Valtonen
    Tuomas Valtonen almost 4 years
    Only works with websites which uses jquery and exposes it as $
  • Dwhitz
    Dwhitz almost 4 years
    You can automate this behaviour using something like tampermonkey (that manage userscripts) and then you can create your own userscript that load jquery if not present and then do that trick for you.