Skip to content

Instantly share code, notes, and snippets.

@dmitriy1980
Forked from vyach-vasiliev/ReadMe.md
Created June 2, 2022 00:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitriy1980/f306719e7de001e62560773ab3d61bb6 to your computer and use it in GitHub Desktop.
Save dmitriy1980/f306719e7de001e62560773ab3d61bb6 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