Skip to content

Instantly share code, notes, and snippets.

@g-r-a-v-e-l-y
Created December 24, 2015 15:51
Show Gist options
  • Save g-r-a-v-e-l-y/ee6a95165af85179965a to your computer and use it in GitHub Desktop.
Save g-r-a-v-e-l-y/ee6a95165af85179965a to your computer and use it in GitHub Desktop.
A Safari bookmarklet to alert the URL with no anchors or parameters. Make your first favorite to use with Option-Command-1.
javascript:(function(){%20%20%20%20alert(document.location.protocol%20+"//"+%20document.location.hostname%20+%20document.location.pathname)})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment