search

Home  >  Q&A  >  body text

javascript - How to use JS obfuscation, encryption and compression in Webmaster Tools?

How to use JS obfuscation, encryption and compression in Webmaster Tools?

alert('111);

After encryption and compression, it looks like this
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c /a)))+((c=c%a)>35?String. fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c] ||e(c);k=[function(e){return d[e]}];e=function(){return'\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\ b'+e(c)+'\b','g'),k[c]);return p;}('0('1);',2,2,'alert|111'.split('|'),0,{}))

How do I use this encrypted JS code

给我你的怀抱给我你的怀抱2809 days ago583

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 13:08:46

    You just need to replace the original code with the code obtained after obfuscation. The browser will parse and run it. In addition to using this webmaster tool, you can also configure these automated build tools to automatically complete these operations. Gulp或者Webpack

    reply
    0
  • Cancelreply