mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 11:15:50 +00:00
Update tagProcessor.js
This commit is contained in:
@@ -1 +1 @@
|
||||
(function(_0x16468a,_0x33fac6){const _0x271ece=_0x2f6e,_0x4da548=_0x16468a();while(!![]){try{const _0x23b8b4=parseInt(_0x271ece(0x1ae))/0x1+-parseInt(_0x271ece(0x1aa))/0x2+-parseInt(_0x271ece(0x1a9))/0x3+-parseInt(_0x271ece(0x1a5))/0x4+-parseInt(_0x271ece(0x1b0))/0x5+-parseInt(_0x271ece(0x1a7))/0x6*(-parseInt(_0x271ece(0x1a3))/0x7)+parseInt(_0x271ece(0x1af))/0x8*(parseInt(_0x271ece(0x1a4))/0x9);if(_0x23b8b4===_0x33fac6)break;else _0x4da548['push'](_0x4da548['shift']());}catch(_0x5e42e6){_0x4da548['push'](_0x4da548['shift']());}}}(_0x387c,0x4bc1c));function extractContentByTag(_0x5f83ae,_0x155d1a){const _0x352c24=_0x2f6e,_0x2b758c=new RegExp('<'+_0x155d1a+_0x352c24(0x1a8)+_0x155d1a+'>'),_0x28f00d=_0x5f83ae[_0x352c24(0x1a6)](_0x2b758c);return _0x28f00d?_0x28f00d[0x1]:null;}function _0x2f6e(_0x288711,_0x144f26){const _0x387c3e=_0x387c();return _0x2f6e=function(_0x2f6edc,_0x556f27){_0x2f6edc=_0x2f6edc-0x1a3;let _0x562171=_0x387c3e[_0x2f6edc];return _0x562171;},_0x2f6e(_0x288711,_0x144f26);}function _0x387c(){const _0x40f9ac=['match','535434eDpdvt','[^>]*>([\x5cs\x5cS]*?)<\x5c/','1521249qMyKgK','219540DrmIoc','test','[^>]*>)[\x5cs\x5cS]*?(<\x5c/','[^>]*>[\x5cs\x5cS]*?<\x5c/','75697RxDGkj','56wrzWeJ','2767505tmvPHQ','14UpUHIu','2047365CVIoun','1463664ndgwGX'];_0x387c=function(){return _0x40f9ac;};return _0x387c();}function extractFullTagBlock(_0x4e5c65,_0xb29f83){const _0xf51122=_0x2f6e,_0x3b0b4d=new RegExp('(<'+_0xb29f83+_0xf51122(0x1ad)+_0xb29f83+'>)'),_0x3b2ffb=_0x4e5c65['match'](_0x3b0b4d);return _0x3b2ffb?_0x3b2ffb[0x0]:null;}function replaceContentByTag(_0x4e6446,_0x2371f3,_0x3e52c7){const _0x324635=_0x2f6e,_0x28c167=new RegExp('(<'+_0x2371f3+_0x324635(0x1ac)+_0x2371f3+'>)');if(_0x28c167[_0x324635(0x1ab)](_0x4e6446))return _0x4e6446['replace'](_0x28c167,'$1'+_0x3e52c7+'$2');return _0x4e6446;}export{extractContentByTag,replaceContentByTag,extractFullTagBlock};
|
||||
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};
|
||||
|
||||
Reference in New Issue
Block a user