Skip to content

Instantly share code, notes, and snippets.

@simonwhitaker
Created August 1, 2012 13:00
Show Gist options
  • Save simonwhitaker/3226650 to your computer and use it in GitHub Desktop.
Save simonwhitaker/3226650 to your computer and use it in GitHub Desktop.
A Javascript bookmarklet to show the URL for a search results page in Safari 6

Show search results URL in Safari 6

Here's a bookmarklet that'll pop the current search results page's URL open in one of those annoying little JS prompt dialogs.

Show URL

Drag it to your bookmarks bar and click when needed.

The code in a nutshell:

window.prompt('Copy to the pasteboard then hit OK', location.href);

Context: Copying Search URLs from Safari by Brent Simmons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment