Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Agario Macro For W // Made by MrShadow
- // @namespace http://shadowbot.cf
- // @version 1.0.0
- // @description You Can Hold W to eject mass until you release. Works with various other sites.
- // @author Mr Shadow
- // @match *.agargold.net/*
- // @match *.agarboy.com/*
- // @match *.agar.io/*
- // @match *.agariotime.com/*
- // @match *.agariow.net/*
- // @match *.slither.io/*
- // @match *.agar.gold/*
- // @match *.agar.ws/*
- // @match *.agarport.net/*
- // @grant none
- // ==/UserScript==
- //V1
- //Eject Mass Until You Want To Stop
- console.log('called');
- var interval;
- var switchy = false;
- $(document).on('keydown',function(e){
- console.log('keydown e.keyCode="'+e.keyCode+'"');
- if(e.keyCode == 87){
- console.log('keydown 87, switchy '+switchy);
- if(switchy){
- return;
- }
- switchy = true;
- interval = setInterval(function() {
- console.log('firing');
- $("body").trigger($.Event("keydown", { keyCode: 87}));
- $("body").trigger($.Event("keyup", { keyCode: 87}));
- }, 10);// If you want to eject mass slower increase this number.
- }
- })
- $(document).on('keyup',function(e){
- console.log('keyup e.keyCode="'+e.keyCode+'"');
- if(e.keyCode == 87){
- console.log('stop firing');
- switchy = false;
- clearInterval(interval);
- return;
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement