Last active
March 27, 2016 05:37
-
-
Save kevinmarks/c31aabf1f6e29b13a794 to your computer and use it in GitHub Desktop.
Genius.it escape hatch
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 loc = window.location.href; | |
if (loc.includes('genius.it')) { | |
offset = loc.indexOf('genius.it'); | |
newloc = loc.slice(0,offset)+ loc.slice(offset+'genius.it/'.length); | |
window.location.replace(newloc); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment