Created
December 3, 2013 22:18
-
-
Save say2joe/7778608 to your computer and use it in GitHub Desktop.
Small (few lines of code) snippets of JavaScript
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
// Return absolute path without domain or protocol: | |
path = location.href.replace(/(.+\w\/)(.+)/,"/$2"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment