Last active
August 29, 2015 14:07
-
-
Save user19/09d2be4ffd4bade8322d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if(location.hostname === "github.com") | |
var url = location.href.replace("/blob",""); | |
else if(location.hostname === "gist.github.com") | |
var url = document.getElementsByClassName('minibutton raw-url js-view-raw')[0].href; | |
else if(location.hostname === "gist.githubusercontent.com" || "raw.githubusercontent.com") | |
var url = location.href; | |
prompt("URL for development",url.replace(location.hostname,"rawgit.com")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment