Pause LastPass!

Pause LastPass by adding 'lpignore' to every input of type text or password.

  1. // ==UserScript==
  2. // @name Pause LastPass!
  3. // @namespace cfm
  4. // @version 1.1
  5. // @description Pause LastPass by adding 'lpignore' to every input of type text or password.
  6. // @author CFM
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. console.log('Adding LastPass Ignore on all input type text or password.');
  13. let inputs = document.querySelectorAll('input[type=text], input[type=password]');
  14. for(let input of inputs) {
  15. input.setAttribute('data-lpignore', 'true');
  16. }
  17. })();