i write a bookmarklet to search in favorite by tagsPosted on: 08/14/19 01:48AM
the bookmarklet which i named **gelbooru favorite power** will crawl your favorite images and store in browser local storage.
(i use indexedDb. my 2350 images which is 47 pages take 3.2MB in indexedDb. only store image id, thumbnail url, and tags.)
then you can search by tags in your favorite archive.
i host bookmarklet in jsfiddle:
jsfiddle.net/Lyvrc8pw/and grease monkey user.js in pastebin:
pastebin.com/raw/8iKVnqGB#gelbooru-favorite-power.user.js[SITE STAFF WARNING: This code has not been examined and verified to be safe.]
## usage
### bookmarklet
1. add bookmarklet to your bookmark.
(drag bookmarklet link in to your bookmark list.)
2. go to your gelbooru favorite page,
like
gelbooru.com/index.php?pa...s&s=view&id=44004 .
3. click this bookmarklet in you favorite page,
then there will appear a **search bar** and a **update button** .
### user.js
just install it and go to your gelbooru favorite page.
then **search bar** and **update button** will appear.
### using search bar and update button
4. in first use, you need to click update button,
and **gelbooru favorite power** will start crawl all favorite image.
you can inspect the crawl prograss by open dev tool (hit F12).
every page is a single *http get request*.
**gelbooru favorite power** will sleep 6 second after crawl one page.
5. after crawl finish, you can search by type in search bar.
search will start when you stop typing.
6. every time you add new favorite,
click update button to update local archive.