Deeeep.io Remember Username

Save the last username you've typed into deeeep.io so you don't have to type it every time you go to the site.

  1. // ==UserScript==
  2. // @name Deeeep.io Remember Username
  3. // @license MIT
  4. // @namespace http://tampermonkey.net/
  5. // @version 1.1
  6. // @description Save the last username you've typed into deeeep.io so you don't have to type it every time you go to the site.
  7. // @author Dildoer the Cocknight
  8. // @match https://deeeep.io/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=deeeep.io
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. window.onload = () => {
  14.  
  15. const input = document.querySelector('.el-input__inner');
  16. input.value = localStorage.input;
  17. const evt = document.createEvent("KeyboardEvent");
  18. evt.initEvent("input", false, true);
  19. input.addEventListener('input', ()=> {
  20. localStorage.input = input.value;
  21. });
  22. input.dispatchEvent(evt);
  23.  
  24. };