Unlock the Secrets: How to Get Premium Web Templates for Free and Decrypt JavaScript in Your Blogger Theme
Blogger themes have encrypted JavaScript inside, and then they ask how to remove that. So, read this post to learn how to remove/unpack JavaScript from these themes.
What Is Encrypted JavaScript?
Encrypted JavaScript is used to encrypt some lines of the JavaScript code on the web page, particularly JavaScript, which is used for keeping the credit of the theme(credit gives them a back-link). So if you have purchased the theme, then there's no problem. If you remove the script directly, your theme starts to misbehave(some sections of the theme may not appear).
In this post, I'll not only tell you how to remove that credit-removing script but will also tell you how to unpack/decrypt those scripts.
Types Of Scripts
We typically face two types of scripts in the Blogger templates encrypted or packed. It becomes much more difficult if you can't see any direct executable JavaScript code and want to modify it. I've two tools to help you to decrypt or unpack those scripts.
But first of all, we need to look at those scripts so that you can distinguish them and use the tool.
1. Packed Scripts
You must have seen the following type of scripts in the Blogger template.
eval(function(p,a,c,k,e,r){e=String;if(!''.replace(/^/,String)){while(c--)r[c]=k[c]||c;k=[function(e){return r[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(){4 1="5 6 7 8";0 2(3){9(3)}2(1)})();',10,10,'function|b|something|a|var|some|sample|packed|code|alert'.split('|'),0,{}))its start from function(p,a,c,k,e,d)... and so on.
Steps to unpack this type of packed javascript are as follows-
- Copy the whole function from eval() to the end of the code.
- Go to Javascript unpacker or Download Mallzila by bobby, paste that code into the box, and click ' unpack.' (in Malzila, paste code in the decode tab)
- After successfully unpacking, Copy the code in Output and replace that with the main code.
Note: You may take a backup of the theme before replacing the code as if you got mixed up, you can restore it.
2. Encrypted Scripts
Encrypted scripts look like below and are defined as the object in a variable.
var 0x760d ["\x64\x69\x73\x70\x6C\x61\x79","\x69\x6E\x6C\x69\x6E\x65\x2D\x62\x6C\x6F\x63\x6B","\x63\x73\x73","\x23\x6D\x73\x63\x6F\x6E\x74\x65\x6E\x74","\x43\x72\x65\x61\x74\x65\x64\x20\x62\x79\x20\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x6D\x73\x64\x65\x73\x69\x67\x6E\x62\x64\x2E\x63\x6F\x6D\x22\x3E\x4D\x53\x20\x44\x65\x73\x69\x67\x6E\x3C\x2F\x61\x3E","\x68\x74\x6D\x6C","\x6C\x65\x6E\x67\x74\x68","\x23\x6D\x73\x63\x6F\x6E\x74\x65\x6E\x74\x3A\x76\x69\x73\x69\x62\x6C\x65","\x68\x72\x65\x66","\x6C\x6F\x63\x61\x74\x69\x6F\x6E","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x6D\x73\x64\x65\x73\x69\x67\x6E\x62\x64\x2E\x63\x6F\x6D","\x72\x65\x61\x64\x79"];
The steps for decrypting this type of text are below. Sometimes this encrypted Javascript is inside the function(p,a,c,k,e,d). That means we must unpack the scripts to decrypt this type of script.
- Copy the code between '=' and ';' {equal to and semicolon}.
- Open JS decrypter. Paste the code into the first textbox
- Click on decrypt.
- After successful decryption, Copy the code in Output and replace that with the main code.
After decrypting, the above code will look something like this below
the display,inline-block, CSS,#mscontent, Created by <a href="http://www.msdesignbd.com">MS Design</a>,html, length,#mscontent: visible,href, location,http://www.msdesignbd.com,ready.
Screenshot of the script decrypted in JS decrypter.
Tools Used
- Javascript Unpacker (to unpack the JavaScript)
- Javascript Decrypter (to decrypt the encrypted JavaScript)
First, I'm going to search for eval.
After selecting and copying that code, unpack that(see the picture below.).
Okay, you can see the encrypted script after unpacking the code. It's nothing but simple text when decrypted. (Click on Images to open).
Copy and paste it into JS Decrypter.
Finally, replace the decrypted text and Unpacked text with the original one!

Join the conversation