mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 20:55:51 +00:00
2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
function _0x2888(_0x25a3aa,_0x8d170d){const _0x29694d=_0x2969();return _0x2888=function(_0x288890,_0x208783){_0x288890=_0x288890-0x1be;let _0x5b9afd=_0x29694d[_0x288890];return _0x5b9afd;},_0x2888(_0x25a3aa,_0x8d170d);}(function(_0x28aa32,_0x389f9e){const _0x450a2c=_0x2888,_0xa8f75f=_0x28aa32();while(!![]){try{const _0x5898b8=parseInt(_0x450a2c(0x1cc))/0x1*(-parseInt(_0x450a2c(0x1c4))/0x2)+-parseInt(_0x450a2c(0x1c3))/0x3+parseInt(_0x450a2c(0x1cb))/0x4+parseInt(_0x450a2c(0x1cd))/0x5*(-parseInt(_0x450a2c(0x1c7))/0x6)+-parseInt(_0x450a2c(0x1c8))/0x7*(parseInt(_0x450a2c(0x1bf))/0x8)+parseInt(_0x450a2c(0x1c6))/0x9*(parseInt(_0x450a2c(0x1c9))/0xa)+parseInt(_0x450a2c(0x1ca))/0xb;if(_0x5898b8===_0x389f9e)break;else _0xa8f75f['push'](_0xa8f75f['shift']());}catch(_0x1fcdf0){_0xa8f75f['push'](_0xa8f75f['shift']());}}}(_0x2969,0xc499e));function findLastTagIndices(_0x394ed1,_0x291bd7){const _0x22d5ba=_0x2888,_0x2b4a4b='</'+_0x291bd7+'>',_0x4ac6f0=_0x394ed1[_0x22d5ba(0x1c5)](_0x2b4a4b);if(_0x4ac6f0===-0x1)return null;const _0x2d7231='<'+_0x291bd7,_0x49af7e=_0x394ed1['lastIndexOf'](_0x2d7231,_0x4ac6f0);if(_0x49af7e===-0x1)return null;const _0x38f18a=_0x394ed1[_0x22d5ba(0x1c2)]('>',_0x49af7e);if(_0x38f18a===-0x1||_0x38f18a>_0x4ac6f0)return null;return{'blockStart':_0x49af7e,'contentStart':_0x38f18a+0x1,'contentEnd':_0x4ac6f0,'blockEnd':_0x4ac6f0+_0x2b4a4b[_0x22d5ba(0x1c1)]};}function extractContentByTag(_0x972a10,_0x1c0c76){const _0x1fdbb8=_0x2888,_0xcf263c=findLastTagIndices(_0x972a10,_0x1c0c76);if(!_0xcf263c)return null;return _0x972a10[_0x1fdbb8(0x1ce)](_0xcf263c[_0x1fdbb8(0x1be)],_0xcf263c['contentEnd']);}function _0x2969(){const _0x3e63b8=['blockStart','length','indexOf','1026534lEzWxK','166lICtUa','lastIndexOf','18MkzTbE','7974wvpTdU','46487NVZgAB','2150940nntkoA','20369503OxEVcn','2127504iJPFLa','16107UFtstx','665fwXVqb','substring','contentStart','184jRpIGy'];_0x2969=function(){return _0x3e63b8;};return _0x2969();}function extractFullTagBlock(_0x1fc506,_0xcf2f97){const _0x36e826=_0x2888,_0x1a110b=findLastTagIndices(_0x1fc506,_0xcf2f97);if(!_0x1a110b)return null;return _0x1fc506['substring'](_0x1a110b[_0x36e826(0x1c0)],_0x1a110b['blockEnd']);}function replaceContentByTag(_0x5a8b5a,_0x118723,_0x183731){const _0x32dbf2=_0x2888,_0x42660d=findLastTagIndices(_0x5a8b5a,_0x118723);if(!_0x42660d)return _0x5a8b5a;const _0x52050e=_0x5a8b5a[_0x32dbf2(0x1ce)](0x0,_0x42660d[_0x32dbf2(0x1be)]),_0x963e57=_0x5a8b5a[_0x32dbf2(0x1ce)](_0x42660d['contentEnd']);return''+_0x52050e+_0x183731+_0x963e57;}export{extractContentByTag,replaceContentByTag,extractFullTagBlock};
|