Skip to content

Instantly share code, notes, and snippets.

@Bluscream
Forked from nikolaplejic/gist:3654637
Last active December 4, 2017 13:37
Show Gist options
  • Save Bluscream/35a96eac0d8dc2007b38414bb930a662 to your computer and use it in GitHub Desktop.
Save Bluscream/35a96eac0d8dc2007b38414bb930a662 to your computer and use it in GitHub Desktop.
How to copy/paste your password in PayPal's change password form

PayPal blocks copy/paste actions in their "change password" form, citing some irrelevant security issues as the reason. That's a load of crap, and they know it -- disabling copy/paste makes it a lot harder to use a decent password generator and a lot easier to screw up your pwd when retyping, especially if it's a long one (as it should be!).

So, here's the quick'n'dirty way to use an externally generated password in your PayPal account:

  1. open the change password form
  2. open up the console in your browser of choice (recent versions of Firefox: CTRL+Shift+K, Chrome/Chromium: CTRL+Shift+J);
  3. you should see an input form at the bottom of the console; copy/paste each of the following lines, replacing the string "password" with your desired pwd and hitting enter after each one:
var pw = "password";
if (pw.length < 8) { alert("Password too short!\nMin 8 chars!"); return; }
else if (pw.length > 20 { alert("Password too long!\nMax 20 chars!"); return; }
var ids = ["pwdID", "retype_password", "newPassword", "confirmNewPassword", "password", "retypepassword"];
var arrayLength = ids.length;
for (var i = 0; i < arrayLength; i++) {
    document.getElementById(ids[i]).value = pw;
}
document.getElementById("change_password").removeAttribute("disabled")
//document.getElementsByName("validatePwdForm")[0].submit(); 
  1. close the console by pressing the relevant key combo once again, submit the form & voilà!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment