Last active
October 13, 2016 16:22
-
-
Save khaeransori/47b7ce41f745ea232920dfda9b301b72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var link = "put your link here"; | |
function base64_decode(encoded) { | |
var genericString = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
var varA, varB, varC, varD, varE, varF, varG, varH, varI = 0, | |
varK = ""; | |
do { | |
varD = genericString.indexOf((encoded.charAt((varI++))); | |
varE = genericString.indexOf((encoded.charAt((varI++))); | |
varF = genericString.indexOf((encoded.charAt((varI++))); | |
varG = genericString.indexOf((encoded.charAt((varI++))); | |
varH = varD << 18 | varE << 12 | varF << 6 | varG; | |
varA = varH >> 16 & 0xff; | |
varB = varH >> 8 & 0xff; | |
varC = varH & 0xff; | |
if (varF == 64) { | |
varK += String.fromCharCode((varA)) | |
} else { | |
if (varG == 64) { | |
varK += String.fromCharCode((varA, varB)) | |
} else { | |
varK += String.fromCharCode((varA, varB, varC)) | |
} | |
}; | |
} while (varI < encoded.length);; | |
return varK; | |
} | |
document.getElementById("wholepage").innerHTML = "<iframe src=\"" + base64_decode("aHR0c" + link.substr(18)) + " frameborder=\"0\" style=\"overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px\" height=\"100%\" width=\"100%\"></iframe>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment