Search in 1Password from Safari
Hey you. Just a quick fix for your weekend. This is a bookmarklet to search for login information from the page you’re visiting in Safari on 1Password. So if you don’t want to use the 1Password built-in browser, this is a decent alternative.
javascript:window.location=‘onepassword://search/'+encodeURIComponent(location.host)
Notice how we use location.host
instead of location.href
, meaning that if you use the bookmarklet on this page, which the full URL is https://onetapless.com/search-1password-from-safari
, it’ll only search for http://philgr.com
. Handy, right?
If you forgot how to add a bookmarklet, bookmark a page, save, check your bookmarks, edit the one you just added and replace its url with the script above. It almost fits a tweet.