Git游戏

您现在的位置是:首页 > 攻略大全 > 辅助脚本

辅助脚本

无限按钮模拟器助手

2024-03-08 辅助脚本2785
F12控制台复制输入以下代码回车// ==UserScript==// @name 按钮小助手v0.2// @namespace http://tampermonkey.net/// @version 0.2// @description try to take over the world!// @author xianwang// @matc...

F12控制台复制输入以下代码回车

// ==UserScript==

// @name         按钮小助手v0.2

// @namespace    http://tampermonkey.net/

// @version      0.2

// @description  try to take over the world!

// @author       xianwang

// @match        https://infinite-button-simulator.g8hh.com.cn/

// @icon         https://www.google.com/s2/favicons?sz=64&domain=g8hh.com.cn

// @grant        none

// ==/UserScript==

//改编自论坛老哥1760163...

(function() {

    function createClickerx(index) {

    return function() {

        $("div[style='--background: #f56;']>button:eq(" + index + ")").click();

    };

}

    function createClickerx2(index) {

    return function() {

        $("div[style='--background: #4b5;']>button:eq(" + index + ")").click();

    };

}

    function createClickerx3(index) {

    return function() {

        $("div[style='--background: #68f;']>button:eq(" + index + ")").click();

    };

}

    function createClickerx4(index) {

    return function() {

        $("div[style='--background: #aa3;']>button:eq(" + index + ")").click();

    };

    }

    function createClickerx5(index) {

    return function() {

        $("div[style='--background: #4ac;']>button:eq(" + index + ")").click();

    };

    }

    function createClickerx6(index) {

    return function() {

        $("div[style='--background: #aaa;']>button:eq(" + index + ")").click();

    };

    }

    function createClickerx7(index) {

    return function() {

        $("div[style='--background: #c4c;']>button:eq(" + index + ")").click();

    };

            }

    function createClickerx8(index) {

    return function() {

        $("div[style='--background: #f94;']>button:eq(" + index + ")").click();

    };

                }

    function createClickerx9(index) {

    return function() {

        $("div[style='--background: #777;']>button:eq(" + index + ")").click();

    };

         }

        function createClickerx10(index) {

    return function() {

        $("div[style='--background: #a7c;']>button:eq(" + index + ")").click();

    };

         }



// 创建一个数组,包含要点击的按钮的索引

const indices = [-2, -3, -4, -5, -6, -7, -8];

indices.forEach(function(index, i) {

    // 使用闭包来确保每个点击器有自己的index值

    (function(index) {

        let timerx = setInterval(createClickerx(index), 10+i);

        $("div[style='--background: #f56;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx);

        });

        let timerx2 = setInterval(createClickerx2(index), 21+i);

        $("div[style='--background: #4b5;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx2);

        });

        let timerx3 = setInterval(createClickerx3(index), 45+i);

        $("div[style='--background: #68f;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx3);

        });

        let timerx4 = setInterval(createClickerx4(index), 70+i);

        $("div[style='--background: #aa3;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx4);

        });

                let timerx5 = setInterval(createClickerx5(index), 150+i);

        $("div[style='--background: #4ac;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx5);

        });

               let timerx6 = setInterval(createClickerx6(index), 310+i);

        $("div[style='--background: #aaa;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx6);

        });

               let timerx7 = setInterval(createClickerx7(index), 640+i);

        $("div[style='--background: #c4c;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx7);

        });

               let timerx8 = setInterval(createClickerx8(index), 1930+i);

        $("div[style='--background: #f94;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx8);

             });

               let timerx9 = setInterval(createClickerx9(index), 5900+i);

        $("div[style='--background: #777;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx9);


        });

         let timerx10 = setInterval(createClickerx10(index), 12000+i);

        $("div[style='--background: #a7c;']>button:eq(" + index + ")").one('click', function() {

            clearInterval(timerx10);


        });

    })(index);

});

  let timerqt=  setInterval(() => {

try{

    var mdxx=document.getElementsByClassName("pushy-button milestone")[0]

    var mdxx2=document.getElementsByClassName("pushy-button charge")[0]

     mdxx.click()

    mdxx2.click()


    }

    catch(e) {

        }},10)


})();


文章评论

共有4条评论来说两句吧...

1892036... 1个月前
这个咋用的啊? 网站我匹配对了,在网站里面用f12复制进去显示undefined,在油猴新建一个脚本复制进去也还是不行诶T^T
路人甲 2周前
@ 1892036... 显示undefined也正常运行 @ 1892036...
1325613... 2周前
怎么停止啊?
路人甲 2周前
@ 1325613... F5刷新就没了应该 @ 1325613...