Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Ultra Fast Feed W Gaver.io & Dual
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Macro W Gaver.io & Dual agar by TheFix
- // @author TheFix
- // @match https://astr.io/
- // @match http://dual-agar.me/*
- // @match http://dual-agar.online/*
- // @match http://alis.io/*
- // @run-at document-end
- // @grant none
- // ==/UserScript==
- window.addEventListener('keydown', keydown);
- window.addEventListener('keyup', keyup);
- var EjectDown = false;
- var speed = 1; //in ms
- function keydown(event) {
- if (event.keyCode == 87 && EjectDown === false) { // key Wai
- EjectDown = true;
- setTimeout(eject, speed);
- }
- }
- function keyup(event) {
- if (event.keyCode == 87) { // key W
- EjectDown = false;
- }
- }
- function eject() {
- if (EjectDown) {
- window.onkeydown({keyCode: 87}); // key W
- window.onkeyup({keyCode: 87});
- setTimeout(eject, speed);
- }
- }
- //© 2017. TheFix. All Rights Reserved
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement