Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Agario Mass - Q
  3. // @namespace Macro!
  4. // @version 0.5
  5. // @description Very fast macro to enhance gameplay!
  6. // @author Unknown
  7. // @match http://bubble.am/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var interval;
  12. var switchy = false;
  13. $(document).on('keydown',function(e){
  14. if(e.keyCode == 65){
  15. if(switchy){
  16. return;
  17. }
  18. switchy = true;
  19. interval = setInterval(function() {
  20. $("body").trigger($.Event("keydown", { keyCode: 32}));
  21. $("body").trigger($.Event("keyup", { keyCode: 32}));
  22. }, 3);//increase this number to make it fire them out slower
  23. }
  24. })
  25.  
  26. $(document).on('keyup',function(e){
  27. if(e.keyCode == 65){
  28. switchy = false;
  29. clearInterval(interval);
  30. return;
  31. }
  32. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement