Created
November 3, 2018 14:47
-
-
Save gys-dev/2e3712ab2dc58be2ca9d6f2c3e2306c3 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
javascript: | |
var url = $('#inputLink')[0].value; | |
function getURL(rawUrl){ | |
var raw = rawUrl.split('&')[1]; | |
var resUrl = raw.substring(4,$raw.length); | |
return atob(resUrl); | |
} | |
window.open(getURL(url),'_blank'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`
javascript:
var url = $('#inputLink')[0].value;
function getURL(rawUrl){
var raw = rawUrl.split('&')[1];
var resUrl = raw.substring(4,raw.length);
return atob(resUrl);
}
window.open(getURL(url),'_blank');
`