Skip to content

Instantly share code, notes, and snippets.

@vyach-vasiliev
Last active August 28, 2022 18:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vyach-vasiliev/6f879d8d2df2794b3e9c091ac7c8adab to your computer and use it in GitHub Desktop.
Save vyach-vasiliev/6f879d8d2df2794b3e9c091ac7c8adab to your computer and use it in GitHub Desktop.
Site icon Auto-detector for 1Password entries

Site Icon Auto-detector

Preview

Why?

The 1Password service very often puts site wrong/empty icons in password item pages.

How to use it?

Just copy this line below and paste it in the address of your new bookmark (CTRL+D) in your browser and save it: javascript:open(`https://s2.googleusercontent.com/s2/favicons?sz=64&domain=${document.querySelector('.value.URL input').value}`)

After, click on this bookmark (bookmarklet) when you are on the password item page with "Edit mode" enabled.

Then a new tab will be opened with a picture of 64px in width. It can be dragged to the tab with the password page in the 1Password service on place of the icon item. The service will upload it to the server and you will only have to click Save button.

How does it work?

The script takes the first filled Url in the entry on the password page and opens a link in a new tab that will find an icon on the site and optimize it.

Thanks

Erik Martín Jordán for the description of the universal method of getting the site icon

1Password for excellent service that keeps our secrets safe


updated 07.03.2022

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