// ==UserScript== // @name 全身肥肉的小猪佩奇 - 计算机进化 - 公用修改器 // @namespace jsjjhgyxgqpeppapig // @description 计算机进化公用修改器 // @author 全身肥肉的小猪佩奇 // @license Parity-6.0.0 // @include *://g1tyx.github.io/computer-evolution // @include *://gityx.github.io/computer-evolution // @include *://computer-evolution.g8hh.com/ // @include *://computer-evolution.g8hh.com.cn/ // @require https://code.jquery.com/jquery-3.0.0.js // @version 1.0.02 // @downloadURL https://update.greasyfork.icu/scripts/501164/%E5%85%A8%E8%BA%AB%E8%82%A5%E8%82%89%E7%9A%84%E5%B0%8F%E7%8C%AA%E4%BD%A9%E5%A5%87%20-%20%E8%AE%A1%E7%AE%97%E6%9C%BA%E8%BF%9B%E5%8C%96%20-%20%E5%85%AC%E7%94%A8%E4%BF%AE%E6%94%B9%E5%99%A8.user.js // @updateURL https://update.greasyfork.icu/scripts/501164/%E5%85%A8%E8%BA%AB%E8%82%A5%E8%82%89%E7%9A%84%E5%B0%8F%E7%8C%AA%E4%BD%A9%E5%A5%87%20-%20%E8%AE%A1%E7%AE%97%E6%9C%BA%E8%BF%9B%E5%8C%96%20-%20%E5%85%AC%E7%94%A8%E4%BF%AE%E6%94%B9%E5%99%A8.meta.js // ==/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.bitcoins = data console.log("金钱数改为", data) }}) peppapig.exec.push({ name: "超多金钱", doAction: () => { unsafeWindow.bitcoins = 1e10 console.log("金钱数改为超多") } }) peppapig.exec.push({ name: "金钱不减", peppa: () => { jqbjInterval = setInterval(jqbj, 10) }, george: () => { clearInterval(jqbjInterval) } }) peppapig.title = "计算机进化公用修改器" peppapig.peppa() oldMoney = 1000 function jqbj() { if (bitcoins < oldMoney) unsafeWindow.bitcoins = oldMoney oldMoney = unsafeWindow.bitcoins }