直接选择一个资源按F12 后选择控制台或者Console 后输入以下任何一行代码,回车执行即可修改到指定数字资源,也可以将=改为+=则执行累加逻辑
javascript
gamePage.resPool.get("catnip").value = 0; // 猫薄荷
gamePage.resPool.get("wood").value = 0; // 木材
gamePage.resPool.get("minerals").value = 0; // 矿物
gamePage.resPool.get("coal").value = 0; // 煤炭
gamePage.resPool.get("iron").value = 0; // 铁锭
gamePage.resPool.get("titanium").value = 0; // 钛锭
gamePage.resPool.get("gold").value = 0; // 黄金
gamePage.resPool.get("oil").value = 0; // 石油
gamePage.resPool.get("uranium").value = 0; // 铀
gamePage.resPool.get("unobtainium").value = 0; // 难得素
gamePage.resPool.get("manpower").value = 0; // 喵力
gamePage.resPool.get("science").value = 0; // 科研点
gamePage.resPool.get("culture").value = 0; // 文化点
gamePage.resPool.get("faith").value = 0; // 信仰
gamePage.resPool.get("kittens").value = 0; // 喵星人
gamePage.resPool.get("zebras").value = 0; // 斑马
gamePage.resPool.get("starchart").value = 0; // 星图
gamePage.resPool.get("rocket").value = 0; // 火箭
gamePage.resPool.get("temporalFlux").value = 0; // 时间通量
gamePage.resPool.get("gflops").value = 0; // 浮点运算能力
gamePage.resPool.get("hashrates").value = 0; // 哈希
gamePage.resPool.get("furs").value = 0; // 皮革
gamePage.resPool.get("ivory").value = 0; // 象牙
gamePage.resPool.get("spice").value = 0; // 香料
gamePage.resPool.get("unicorns").value = 0; // 独角兽
gamePage.resPool.get("alicorn").value = 0; // 空角兽
gamePage.resPool.get("tears").value = 0; // 眼泪
gamePage.resPool.get("karma").value = 0; // 业力
gamePage.resPool.get("paragon").value = 0; // 领导力
gamePage.resPool.get("bunedParagon").value = 0; // 燃烧领导力
gamePage.resPool.get("timeCrystal").value = 0; // 时光水晶
gamePage.resPool.get("sorrow").value = 0; // 悲伤
gamePage.resPool.get("elderBox").value = 0; // 礼盒
gamePage.resPool.get("wrappingPaper").value = 0; // 包装纸
gamePage.resPool.get("blackcoin").value = 0; // 黑币
gamePage.resPool.get("beam").value = 0; // 横梁
gamePage.resPool.get("slab").value = 0; // 石板
gamePage.resPool.get("concrate").value = 0; // 混凝土
gamePage.resPool.get("plate").value = 0; // 金属板
gamePage.resPool.get("steel").value = 0; // 钢铁
gamePage.resPool.get("alloy").value = 0; // 合金
gamePage.resPool.get("gear").value = 0; // 齿轮
gamePage.resPool.get("scaffold").value = 0; // 脚手架
gamePage.resPool.get("ship").value = 0; // 船
gamePage.resPool.get("tanker").value = 0; // 油轮
gamePage.resPool.get("kerosene").value = 0; // 煤油
gamePage.resPool.get("manuscript").value = 0; // 手稿
gamePage.resPool.get("parchment").value = 0; // 羊皮纸
gamePage.resPool.get("compedium").value = 0; // 摘要
gamePage.resPool.get("blueprint").value = 0; // 蓝图
gamePage.resPool.get("thorium").value = 0; // 钍
gamePage.resPool.get("megalith").value = 0; // 巨石
gamePage.resPool.get("plastic").value = 0; // 塑料
gamePage.resPool.get("necrocorn").value = 0; // 死灵兽
gamePage.resPool.get("eludium").value = 0; // E合金
gamePage.resPool.get("void").value = 0; // 虚空
gamePage.resPool.get("relic").value = 0; // 圣遗物
gamePage.resPool.get("antimatter").value = 0; // 反物质
每秒自动填满所有资源上限⬇️
javascript
// ===== 配置区 =====
var RES = { // 资源名:中文名 (删掉或加注释即可增减)
catnip:'猫薄荷', wood:'木材', minerals:'矿物', coal:'煤炭',
iron:'铁锭', titanium:'钛锭', gold:'黄金', oil:'石油',
uranium:'铀', unobtainium:'难得素', manpower:'喵力',
science:'科研点', culture:'文化点', faith:'信仰',
kittens:'喵星人', zebras:'斑马', starchart:'星图',
rocket:'火箭', temporalFlux:'时间通量', gflops:'浮点运算能力',
hashrates:'哈希', furs:'皮革', ivory:'象牙', spice:'香料',
unicorns:'独角兽', alicorn:'空角兽', tears:'眼泪',
karma:'业力', paragon:'领导力', bunedParagon:'燃烧领导力',
timeCrystal:'时光水晶', sorrow:'悲伤', elderBox:'礼盒',
wrappingPaper:'包装纸', blackcoin:'黑币', beam:'横梁',
slab:'石板', concrate:'混凝土', plate:'金属板',
steel:'钢铁', alloy:'合金', gear:'齿轮', scaffold:'脚手架',
ship:'船', tanker:'油轮', kerosene:'煤油',
manuspan:'手稿', parchment:'羊皮纸', compedium:'摘要',
blueprint:'蓝图', thorium:'钍', megalith:'巨石',
necrocorn:'死灵兽', eludium:'E合金', void:'虚空',
relic:'圣遗物', antimatter:'反物质'
};
var INTERVAL = 1000; // 刷新间隔(毫秒)
var LOG = true; // 是否打印日志
// ====================
(function(){
var G = window.gamePage||window.Game||window.game;
if(!G||!G.resPool) return console.error('❌ 未找到游戏');
if(window.__t) clearInterval(window.__t);
var keys = Object.keys(RES);
var getMax = function(p){
try {
if(typeof p.max=='function') return p.max();
if(p.max!==undefined) return p.max;
if(typeof p.getMax=='function') return p.getMax();
if(p.maxValue!==undefined) return p.maxValue;
}catch(e){}
return 0;
};
var fill = function(){
var c=0;
keys.forEach(function(k){
var p=G.resPool.get(k);
if(!p) return;
var m=getMax(p);
if(m>0){
p.value=m;
c++;
if(LOG) console.log('✅ '+RES[k]+' -> '+m);
}else if(LOG){
console.log('⏭️ '+RES[k]+' 上限为0');
}
});
if(LOG) console.log('🔄 本轮填充 '+c+' 种');
};
fill();
window.__t=setInterval(fill, INTERVAL);
console.log('✅ 定时器已启动');
})();
以下是自动执行采集猫薄荷 可以将倒数第二行的1改为1000 数字越小浏览器性能消耗越高
javascript
window.__clickelm = document.getElementsByClassName("btnContent")[0];
for (var j = 0; j < 10; j++) {
setInterval(function () {
for (var k = 0; k < 500; k++) {
window.__clickelm.click();
}
}, 1);
}
优化版自动采集⬇️
javascript
// ====== 配置区(按需修改) ======
const config = {
selector: '.btnContent', // 按钮选择器
batchSize: 200, // 每批点击次数(越大越快,但可能卡顿)
delay: 0, // 批次间隔(毫秒,0 表示最快)
maxClicks: Infinity, // 总点击上限(例如 10000),Infinity 为无限
stopKey: 'Q', // 停止热键(需 Ctrl+Shift+该键)
};
// ====== 执行代码(无需改动) ======
(function(cfg) {
let btn = document.querySelector(cfg.selector);
if (!btn) return console.error('未找到按钮');
if (btn.closest('button')) btn = btn.closest('button');
let total = 0, running = true;
function loop() {
if (!running || total >= cfg.maxClicks) {
if (!running) console.log(`已停止,共点击 ${total} 次`);
return;
}
for (let i = 0; i < cfg.batchSize && total < cfg.maxClicks; i++) {
btn.click();
total++;
}
setTimeout(loop, cfg.delay);
}
loop();
console.log(`点击器启动(批次 ${cfg.batchSize},上限 ${cfg.maxClicks === Infinity ? '∞' : cfg.maxClicks})`);
document.addEventListener('keydown', function(e) {
if (e.ctrlKey && e.shiftKey && e.key.toUpperCase() === cfg.stopKey) {
running = false;
document.removeEventListener('keydown', arguments.callee);
}
});
})(config);