How come the minifier use if as a property name XD
So I managed to solve that by change helpernameresult to /;([a-zA-Z0-9$_]+?)\..+?\(/.exec(fnbody).
And for safety let's also add _ to fnnameresult, i.e. /=([a-zA-Z0-9$_]+?)\(decodeURIComponent/.exec(data).
好久不見~ Error occurred at: https://github.com/maple3142/browser-extensions/blob/96bd0909b5eee7f9eb9b2879b7970fa38329b2a0/scripts/local-youtube-dl.user.js#L235 script content: https://www.youtube.com/s/player/11667490/player_ias.vflset/zh_HK/base.js
Some debug info:
Xua
a
a=a.split("");MC["if"](a,71);MC.pn(a,3);MC.QO(a,27);MC.pn(a,2);MC["if"](a,36);MC.QO(a,14);MC.pn(a,3);MC.QO(a,68);MC.pn(a,3);return a.join("")
MC["if"](a,71);MC
How come the minifier use
if
as a property name XDSo I managed to solve that by change
helpernameresult
to/;([a-zA-Z0-9$_]+?)\..+?\(/.exec(fnbody)
. And for safety let's also add_
tofnnameresult
, i.e./=([a-zA-Z0-9$_]+?)\(decodeURIComponent/.exec(data)
.