无限按钮模拟器助手
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)
})();
- 上一篇
Git游戏存档隔离脚本
脚本安装地址:https://scriptcat.org/zh-CN/script-show-page/1590(Tampermonkey油猴篡改猴、ScriptCat脚本猫均可安装)背景Gityx搬运的放置游戏,大多均通过`localStorage`将存档设置存储在本地,且游戏地址主域名...
- 下一篇
序数增量助手
// ==UserScript==// @name 序数增量小助手// @namespace http://tampermonkey.net/// @version 0.1// @description try to take over the world!// @author 咸王// @match https://g1tyx.github.io/ordi...