// ==UserScript== // @name 全身肥肉的小猪佩奇 - 怪物饲养员 - 公用修改器 // @namespace gwsyygyxgqpeppapig // @description 怪物饲养员公用修改器 // @author 全身肥肉的小猪佩奇 // @license Parity-6.0.0 // @include *://g8hh.github.io/monster-breeder/ // @include *://gityx.github.io/monster-breeder/ // @require https://code.jquery.com/jquery-3.0.0.js // @version 1.0.02 // @downloadURL none // ==/UserScript== // 佩奇内核开始 作者 全身肥肉的小猪佩奇 var peppapig = {} peppapig.notice = "

哼,我是佩奇,我要提醒你,本程序仅
为个人学习使用,请在24小时内删除,哼。

" peppapig.edit = [] peppapig.exec = [] peppapig.style = ` ` peppapig.html = `

数值编辑

普通动作

` peppapig.title = "" peppapig.peppa = function () { $("body").append(peppapig.style + peppapig.html) $("#peppapig-title").text(peppapig.title) $("#peppapig-notice").html(peppapig.notice) peppapig.edit.forEach((item, count) => { $("#peppapig-edits").append(`

${item.name}

提交
`) $(`#peppapig-edit-submit-button-${count}`).on("click", (event) => { item.onSubmit(parseInt($(event.target).prev().val()))}) }) peppapig.exec.forEach((item, count) => { if ("peppa" in item && "george" in item) { $("#peppapig-execs").append(`
${item.name}
`) peppapig[item.name] = item $(`#peppapig-exec-action-button-${count}`).css("color", "#ff0000") $(`#peppapig-exec-action-button-${count}`).on("click", (event) => { if ($(event.target).attr("curr") == "off") { $(event.target).attr("curr", "on") $(event.target).css("color", "#00ff00") peppapig[$(event.target).text()].peppa() } else { $(event.target).attr("curr", "off") $(event.target).css("color", "#ff0000") peppapig[$(event.target).text()].george() } }) } else { $("#peppapig-execs").append(`
${item.name}
`) peppapig[item.name] = item $(`#peppapig-exec-action-button-${count}`).on("click", (event) => { peppapig[$(event.target).text()].doAction() }) } }) } //佩奇内核结束 peppapig.edit.push({ name: "金钱数", onSubmit: (data) => { unsafeWindow.Cash = data console.log("金钱数改为", data) }}) peppapig.exec.push({ name: "超多金钱", doAction: () => { unsafeWindow.Cash = 1e10 console.log("金钱数改为超多") } }) peppapig.exec.push({ name: "金钱不减", peppa: () => { jqbjInterval = setInterval(jqbj, 10) }, george: () => { clearInterval(jqbjInterval) } }) peppapig.title = "怪物饲养员公用修改器" peppapig.peppa() oldMoney = 1000 function jqbj() { if (Cash < oldMoney) unsafeWindow.Cash = oldMoney oldMoney = unsafeWindow.Cash }