您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
一键撸猫帮助你更好的撸猫
当前为
// ==UserScript== // @name 一键撸猫 // @namespace knva // @version 0.2 // @homepage http://greasyfork.icu/zh-CN/scripts/381918 // @description 一键撸猫帮助你更好的撸猫 // @author knva // @match https://likexia.gitee.io/cat-zh/ // @grant none // ==/UserScript== (function () { 'use strict'; var UI = { Btn: (pclass, text) => { return `<div class="btn nosel modern ${pclass}" style="position: relative; display: block;" > <div class="btnContent" title=""><span>${text}</span></div></div>`; }, }; var WG = { init: () => { var html = UI.Btn("startbtn", '开始') + UI.Btn("stopbtn", '停止') ; $("#gameContainerId").after(html); ; $(".startbtn").on("click", () => { WG.starttimer(); }) ; $(".stopbtn").on("click", () => { WG.stoptimer(); }) }, sleep: () => { }, p_timer: [null, null], starttimer: () => { WG.p_timer[0] = setInterval(() => { $('.btn').first().click() }, 5); WG.p_timer[1] = setInterval(() => { $.each($(".btn"), function () { if ($(this).html().indexOf("精炼") >= 0) { $(this).click(); } }); }, 1000); }, stoptimer: () => { for (let item of WG.p_timer) { clearInterval(item); } } } // Your code here... $(document).ready(function () { WG.init(); }); })();