Skip to content

Instantly share code, notes, and snippets.

@dmitriy1980
dmitriy1980 / ReadMe.md
Created June 2, 2022 00:07 — forked from vyach-vasiliev/ReadMe.md
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}`)

@vyach-vasiliev
vyach-vasiliev / ReadMe.md
Last active August 28, 2022 18:59
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}`)

@cmod
cmod / hugofastsearch.md
Last active March 22, 2024 07:02 — forked from eddiewebb/readme.md
Fast, instant client side search for Hugo static site generator

Super fast, keyboard-optimized, client side Hugo search

This is a fork of and builds upon the work of Eddie Webb's search and Matthew Daly's search explorations.

It's built for the Hugo static site generator, but could be adopted to function with any json index compatible with Fuse fuzzy search library.

To see it in action, go to craigmod.com and press CMD-/ and start typing.

Fast Search

//Now with less jquery
//1) go to your my-list page, and scroll to the bottom to make sure it's all loaded:
//http://www.netflix.com/browse/my-list
//2) Next, paste this in your developer tools console and hit enter:
[...document.querySelectorAll('.slider [aria-label]')].map(ele => ele.getAttribute('aria-label'))
//or use this to copy the list to your clipboard:
copy([...document.querySelectorAll('.slider [aria-label]')].map(ele => ele.getAttribute('aria-label')))