forgot version

This commit is contained in:
2026-04-22 20:50:36 +03:00
parent c1cc8ceb7a
commit f7016f5f0d

View File

@@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Grepolis Remote Control // @name Grepolis Remote Control
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 2.8 // @version 2.9
// @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player) // @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player)
// @author Dimitrios // @author Dimitrios
// @match https://*.grepolis.com/game/* // @match https://*.grepolis.com/game/*
@@ -329,9 +329,9 @@
captchaActive = true; captchaActive = true;
paused = true; paused = true;
const label = document.getElementById('grc_label'); const label = document.getElementById('grc_label');
const btn = document.getElementById('grc_btn'); const btn = document.getElementById('grc_btn');
if (label) label.textContent = '⚠ CAPTCHA'; if (label) label.textContent = '⚠ CAPTCHA';
if (btn) btn.style.filter = 'brightness(70%) sepia(100%) hue-rotate(300deg) saturate(1000%) contrast(0.8)'; if (btn) btn.style.filter = 'brightness(70%) sepia(100%) hue-rotate(300deg) saturate(1000%) contrast(0.8)';
log('⚠ CAPTCHA detected — bot paused, alerting server'); log('⚠ CAPTCHA detected — bot paused, alerting server');
reportCaptcha(true); reportCaptcha(true);
} else if (!isVisible && captchaActive) { } else if (!isVisible && captchaActive) {
@@ -478,9 +478,9 @@
} }
// Build queue, Recruit queue and Market queue are independent // Build queue, Recruit queue and Market queue are independent
const buildCmd = cmdData.build; const buildCmd = cmdData.build;
const recruitCmd = cmdData.recruit; const recruitCmd = cmdData.recruit;
const marketCmd = cmdData.market; const marketCmd = cmdData.market;
if (cmdData.sync_requested) { if (cmdData.sync_requested) {
log('Sync requested by server — pushing state immediately'); log('Sync requested by server — pushing state immediately');
@@ -492,7 +492,7 @@
log(`Executing command #${cmd.id} — type:${cmd.type} town:${cmd.town_id}`); log(`Executing command #${cmd.id} — type:${cmd.type} town:${cmd.town_id}`);
let result; let result;
try { try {
if (cmd.type === 'build') result = await executeBuild(cmd); if (cmd.type === 'build') result = await executeBuild(cmd);
else if (cmd.type === 'recruit') result = await executeRecruit(cmd); else if (cmd.type === 'recruit') result = await executeRecruit(cmd);
else if (cmd.type === 'market_offer') result = await executeMarketOffer(cmd); else if (cmd.type === 'market_offer') result = await executeMarketOffer(cmd);
else result = { ok: false, msg: `Unknown type: ${cmd.type}` }; else result = { ok: false, msg: `Unknown type: ${cmd.type}` };