Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Agario Mass - Q
- // @namespace Macro!
- // @version 0.5
- // @description Very fast macro to enhance gameplay!
- // @author Unknown
- // @match http://bubble.am/*
- // @grant none
- // ==/UserScript==
- var interval;
- var switchy = false;
- $(document).on('keydown',function(e){
- if(e.keyCode == 65){
- if(switchy){
- return;
- }
- switchy = true;
- interval = setInterval(function() {
- $("body").trigger($.Event("keydown", { keyCode: 32}));
- $("body").trigger($.Event("keyup", { keyCode: 32}));
- }, 3);//increase this number to make it fire them out slower
- }
- })
- $(document).on('keyup',function(e){
- if(e.keyCode == 65){
- switchy = false;
- clearInterval(interval);
- return;
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement