feat: artwork extractor

This commit is contained in:
MiraclePatrickLumowa authored and GitHub committed 2025-09-21 02:37:52 +08:00
1 parent 80eaa3f54a
commit 2721421e6b
11 files changed
+2597 -362

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+12 -9
View File
@@ -364,10 +364,14 @@
// NUEVA LÓGICA DE INYECCIÓN - ACTUALIZADA DESDE new.txt
function inject(callback) {
const script = document.createElement('script');
script.textContent = `(${callback})();`;
document.documentElement?.appendChild(script);
script.remove();
try {
const script = document.createElement('script');
script.textContent = `(${callback})();`;
document.documentElement?.appendChild(script);
script.remove();
} catch (error) {
console.error('❌ Injection error:', error);
}
}
inject(() => {
@@ -593,7 +597,7 @@
}
} catch { }
}
console.error(`❌ Could not find Pawtect chunk: `, error);
console.error(`❌ Could not find Pawtect chunk with string: ${str}`);
}
// Audio notification system
@@ -1788,11 +1792,10 @@
currentRgb: currentPixel.slice(0, 3),
isDamagedTransparent: false
});
wrongColorPixelsDetected++;
wrongColorPixelsDetected++;
if (!state.autonomousMode || wrongColorPixelsDetected <= 10) {
Utils.addDebugLog(`Color damage at (${x},${y}): expected color ${targetColor.id}, found color ${currentColor.id}`, 'warning');
}
if (!state.autonomousMode || wrongColorPixelsDetected <= 10) {
Utils.addDebugLog(`Color damage at (${x},${y}): expected color ${targetColor.id}, found color ${currentColor.id}`, 'warning');
}
}