kabeldeutschland.de/csc - Enable password autocompletion

Enables password autocompletion by rewriting the login form to use the HTML5 input placeholder attribute.

  1. // ==UserScript==
  2. // @name kabeldeutschland.de/csc - Enable password autocompletion
  3. // @namespace conquerist2@gmail.com
  4. // @include https://www.kabeldeutschland.de/csc*
  5. // @version 1.2
  6. // @grant none
  7. // @description Enables password autocompletion by rewriting the login form to use the HTML5 input placeholder attribute.
  8. // ==/UserScript==
  9. // 2015 05 24 v1.2 - Fixed include
  10. // 2015 05 24 v1.1 - Also match subpages
  11. // 2015 05 24 v1.0 - Initial version
  12.  
  13. var dataPasswortText = document.getElementById('dataPasswortText');
  14. var dataPasswort = document.getElementById('dataPasswort');
  15. var dataKennung = document.getElementById('dataKennung');
  16.  
  17. dataPasswortText.parentNode.removeChild(dataPasswortText);
  18.  
  19. dataPasswort.removeAttribute('onfocus');
  20. dataPasswort.removeAttribute('onblur');
  21. dataPasswort.removeAttribute('value');
  22. dataPasswort.setAttribute('placeholder','Passwort');
  23. dataPasswort.setAttribute('style','display: block;');
  24.  
  25. dataKennung.removeAttribute('onfocus');
  26. dataKennung.removeAttribute('onblur');
  27. dataKennung.removeAttribute('value');
  28. dataKennung.setAttribute('placeholder','Benutzername / E-Mail');