Skip to content

Instantly share code, notes, and snippets.

@kevinmarks
Last active March 27, 2016 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinmarks/c31aabf1f6e29b13a794 to your computer and use it in GitHub Desktop.
Save kevinmarks/c31aabf1f6e29b13a794 to your computer and use it in GitHub Desktop.
Genius.it escape hatch
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