Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Last active August 23, 2017 01:00
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tjluoma/4527061 to your computer and use it in GitHub Desktop.
Save tjluoma/4527061 to your computer and use it in GitHub Desktop.
Bookmarklet to open a JavaScript prompt, pre-filled with the current domain, and then send it to 1Password for iOS 4.1
javascript:str=window.location.hostname;n=str.split(".");l=n.length;op=window.prompt('Search in 1Password',n[(l-2)]+"."+n[(l-1)]);if(op!=null){window.location='onepassword://search/'+op;}
@tjluoma
Copy link
Author

tjluoma commented Feb 10, 2013

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