Created
June 12, 2025 13:29
-
-
Save NickDeckerDevs/1f2836ccdfe8b7653187e849be9aecb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
After inside FC web app | |
Open dev tools, paste script in console. | |
Then I close dev tools, repopen it, repaste script. | |
This usually always works before I need to paste it three times | |
*/ | |
;(function () { | |
const PREFIX = '[FC25-Patch]:' | |
const BADGE_STYLE = | |
'background:#ff4081;color:#fff;font-weight:bold;padding:2px 6px;border-radius:3px;' | |
const TEXT_STYLE = 'color:#ff4081;font-weight:bold;' | |
function log(...args) { | |
console.log(`%c${PREFIX}%c`, BADGE_STYLE, TEXT_STYLE, ...args) | |
} | |
// Patch _0xa5810f to remove only debugger statements (preserves function structure) | |
// in case this actually does something | |
function patchAntiDebugFunction() { | |
if (typeof window._0xa5810f === 'function') { | |
log('Patching _0xa5810f to remove debugging statements') | |
window._0xa5810f = function (_0x2b033d) { | |
function _0x5e80f5(_0x53fcd8) { | |
var _0x54c4d7 = a0_0x4225 | |
if (typeof _0x53fcd8 === _0x54c4d7(0xee8)) { | |
var _0x18ccf0 = function () { | |
while (true) {} | |
} | |
return _0x18ccf0() | |
} else { | |
// tnis is where the bebug was | |
} | |
_0x5e80f5(++_0x53fcd8) | |
} | |
try { | |
if (_0x2b033d) return _0x5e80f5 | |
else _0x5e80f5(0x0) | |
} catch (_0x417ede) {} | |
} | |
} | |
} | |
// Patch _0xa5810f which is the obssuficated function | |
function rewriteFunction() { | |
if (typeof window._0xa5810f === 'function') { | |
log('rewriting out _0xa5810f') | |
window._0xa5810f = function () { | |
log(`this is not a pause function anymore`) | |
} | |
} | |
} | |
log('loaded and running, starting patch') | |
// patchAntiDebugFunction() | |
rewriteFunction() | |
window.addEventListener('DOMContentLoaded', () => { | |
// patchAntiDebugFunction() | |
rewriteFunction() | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment