// ==UserScript== // @name Diep.io Predator stacking // @namespace ht// ==UserScript== // @namespace http://tampermonkey.net/ // @version 1.1 // @description Auto stacks bullets for predator // @author Mega // @match https://diep.io/ // @grant none // @icon https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQq3-6vEF807N6VUfz_XsnHw0d7em92SzNIHg&usqp=CAU // @downloadURL https://update.greasyfork.icu/scripts/435044/Diepio%20Predator%20stacking.user.js // @updateURL https://update.greasyfork.icu/scripts/435044/Diepio%20Predator%20stacking.meta.js // ==/UserScript== (function() { 'use strict'; function onSpace() {function fire(t,w) { setTimeout(function(){ input.keyDown(32); }, t*1000); setTimeout(function(){ input.keyUp(32); }, t*1000+w); } fire(0,100); fire(0.75,200); fire(1.5,750); setTimeout(function(){input.keyDown(69); input.keyUp(69);},2000); } function onKeydown(evt) { // Use https://keycode.info/ to get keys if (evt.keyCode == 90) { onSpace(); } } document.addEventListener('keydown', onKeydown, true); })();