Predator Stack - V & B (Reload 7 & 5)

Press "V" or "B" to stack.

2026/03/22のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Predator Stack - V & B (Reload 7 & 5)
// @license MIT
// @namespace    http://tampermonkey.net/
// @version      1.2
// @description  Press "V" or "B" to stack.
// @author       Voyager
// @match        *://diep.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // inyeccion directa para saltarse el sandbox
    const script = document.createElement('script');
    script.textContent = `
        (function() {
            function simulateKey(code, keyCode, type) {
                const event = new KeyboardEvent(type, {
                    code: code,
                    keyCode: keyCode,
                    which: keyCode,
                    bubbles: true,
                    cancelable: true
                });
                const target = document.querySelector('canvas') || document;
                target.dispatchEvent(event);
            }

            function shoot(duration) {
                simulateKey("Space", 32, "keydown");
                setTimeout(() => {
                    simulateKey("Space", 32, "keyup");
                }, duration);
            }

            function executeStack(t1, t2, t3) {
                shoot(t1);
                setTimeout(() => shoot(300), t2);
                setTimeout(() => {
                    simulateKey("KeyE", 69, "keydown");
                    setTimeout(() => simulateKey("KeyE", 69, "keyup"), 50);
                }, t3);
            }

            window.addEventListener('keydown', (e) => {
                if (document.activeElement.tagName === 'INPUT' || e.repeat) return;
                const key = e.key.toLowerCase();
                if (key === 'v') executeStack(50, 750, 1500);
                if (key === 'b') executeStack(50, 900, 1800);
            }, true);
        })();
    `;
    (document.head || document.documentElement).appendChild(script);
})();