I have a site that disables pasting the username/password, thus disabling my password manager.

I found this javascript code for a bookmarklet that enables copy/paste on the site your on, and it works great:

javascript: (function () {
  allowCopyAndPaste = function (e) {
    return true;
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);

However, I have 0 javascript coding skills. How can I modify this to open the URL then apply the code?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.