3 Ways to Paste on Sites that Don’t Allow Pasting

How to bypass disabled pasting on password forms
Like
Like Love Haha Wow Sad Angry

If you’re trying to paste something into an input field, like a textbox for a password, and it’s not working then chances are the site developer’s decided to disable pasting.

The reason they do this is because they erroneously think it improves security. They couldn’t be more wrong.

In fact, disabling pasting actually decreases security by disallowing legitimate users from using password managers.

How to Force Enable Pasting

There are several ways you can bypass disabled pasting. By far the best method is to use a JavaScript block of code to temporarily enable pasting on the site you’re trying to paste to.

The second best method is to use extensions that enable pasting. But this is not recommended as installing extensions just creates an additional security concern.

Method 1 (Safest) – JavaScript Code

You don’t need to know how to code to use this. This will work on any chromium-based browser like Google Chrome, Vivaldi, Brave, Edge and more.

  1. Open the Developer Tools either by:
    • Pressing F12
    • Pressing CTRL + Shift + I
    • Right Clicking the page -> Developer Tools -> Inspect
  2. In the Developer Tools click on Console
  3. Paste the following code into the console and press Enter

var allowPaste = function(e){
  e.stopImmediatePropagation();
  return true;
};
document.addEventListener('paste', allowPaste, true);

This will temporarily enable pasting on the site. Bookmark this page or save the code somewhere easily accessible whenever you need to use it.

Method 2 (Easiest) – Extensions

Here’s an extension that will force allow pasting on sites:

Method 3 – FireFox Only

FireFox allows you to customize certain aspects of the browser, including how sites can treat your inputs. With this, pasting. In fact, you can force enable pasting on sites global-wide.

Here’s how to do it:

  1. Open a new Tab
  2. Type in about:config in the URL address field and press Enter
  3. Search for dom.event.clipboardevents.enabled
  4. Double click it so that its value changes to false
Like
Like Love Haha Wow Sad Angry

Leave A Comment