-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcapture.js
executable file
·3 lines (3 loc) · 1.07 KB
/
capture.js
1
2
3
var Zb,$b;function ac(a,b){a=C(a);b=C(b);t(a,function(c){t(b,function(d){c.removeAttribute(u(d))})})}var bc,cc,dc=[],ec=u(112);function fc(a,b){la([a,b])}ma&&(R[ec]=fc);
function gc(a){t(dc,function(b){function c(){a.innerHTML="";ac(a,[e,0]);a.disabled=!0}b=b[0];var d,e,g;if(a&&1===a.nodeType&&!a.hasAttribute(u(19))){var f=a.nodeName.toLowerCase();T($b,[a,f],function(q,x){q&&(g=q,d=6,e=x)});T(Zb,[a,f],function(q,x){q&&(g=q,d=109,e=x)})}if(d){var k;t(b,function(q){if(!k){var x=q[2]||7,z=q[103]||108,G=q[90],A=q[91],B=g;if(7===x||x===d)101===z&&(B=a.outerHTML),(G=A?sb(G):G)&&B&&(A?G.test(B)&&(k=q):-1!==B.indexOf(G)&&(k=q))}});if(k)if(f=k[104],110===f[2])c(a,d);else{var h=
f[105],l=f[106],n=f[91];b=f[107];f=S(f[14]);if(h)if(n)if(n=sb(h))h=g.replace(n,l);else return M&&pa("capture."+(109===d?"js":"css"),["invalid regex",h]),a;else h=g.replace(h,l);else h=l;f[e]=h;f[20]=g;if(J&&b){f[19]=d;var w=Ga(a,f);c(a,d);T(J,M?[b,g]:b,function(){Ia(a).replaceChild(w,a)})}else V(a,f)}}});return a}la=function(a){var b=v(S(a[1]));a[0]&&(a=[v(C(a[0])),b],dc.push(a));T(bc,b[92],gc);T(cc,b[93],gc)};