Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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 commented Feb 10, 2013

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