Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hrefSplit = window.location.href.split("?", 2);
- var domian = hrefSplit[0];
- var file = hrefSplit[1];
- if (file) {
- if (file.match(/^[a-z0-9+\/=]+$/i)) {
- file = b64_to_utf8(file);
- } else {
- // Hide the link in the url
- window.location.href = domian + '?' + utf8_to_b64(file);
- }
- } else {
- file = 'koalas0.jpg';
- }
Add Comment
Please, Sign In to add comment