Prevents you from deleting your clan and shows all map

Prevents you from deleting your clan and shows all map!!!!

  1. // ==UserScript==
  2. // @name Prevents you from deleting your clan and shows all map
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Prevents you from deleting your clan and shows all map!!!!
  6. // @author You
  7. // @match http://vertix.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. var amount = 6;
  13. var duration = 50; //ms
  14.  
  15. var overwriting = function(evt) {
  16. if (evt.keyCode === 69) { // KEY_E
  17. for (var i = 0; i < amount; ++i) {
  18. setTimeout(function() {
  19. window.onkeydown({keyCode: 87}); // KEY_W
  20. window.onkeyup({keyCode: 87});
  21. }, i * duration);
  22. }
  23. }
  24. };
  25.  
  26. window.addEventListener('keydown', overwriting);
  27. })();
  28.  
  29. function preventLeave() {
  30. socket.emit("dbClanLeave");
  31. alert("Do you want to leave your clan?"); // Prevents you from deleting your clan without a warning
  32. }
  33.  
  34. var x = setInterval(preventLeave, 1000);