How to Enable Pasting Text on Sites That Block It

paypal

Some companies think they’re increasing security by disabling your ability to paste into form fields, such as the password field. But in reality, all they’re doing is frustrating users–and probably decreasing security by blocking password managers. Here’s how to solve this annoyance in Chrome and Firefox.

In Chrome: Use the “Don’t F*ck with Paste” Extension

If Chrome is your browser of choice, the easiest solution to your pasting problems is Don’t F*ck with Paste. Add that extension to Chrome, and it will just work quietly in the background. It tells the browser to accept all paste events and skip any paste event handlers on the page.

This is the code by developer Vivek Gite, in case you’re interested:

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

But you don’t really need to know that. It’s just a simple extension that worked for me with PayPal and Western Union (which a similar extension, Allow Copy, couldn’t fix).

In Firefox: Modify Your Configuration Settings

Firefox users don’t need to use an extension, but instead can change the browser’s behavior in the configuration settings.

Head to about:config in Firefox and click the “I’ll be careful, I promise!” button to proceed past the warning.

firefox-config650

Search for dom.event.clipboardevents.enabled  in the search box. It’ll be the only option once you type in “dom.event.cl”:

firefox-config650-2

Double-click on the setting to change the value from “true” to “false”.

firefox-config650-3

Now websites can’t mess with your clipboard or block your ability to copy and paste.

It’s terrible that we have to jump through hoops to easily use our long passwords on many sites, but at least it only takes a couple of minutes to fix this frustration. 

Melanie Pinola writes about technology, productivity, food hacks, and other good stuff. When she's not writing, she's building cities in SimCity or traveling with the family. Say hello on Twitter.