Skip to content

Instantly share code, notes, and snippets.

@Shujito
Last active February 9, 2024 21:37
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shujito/0e628bae47630ec00a64e184487f22a4 to your computer and use it in GitHub Desktop.
Save Shujito/0e628bae47630ec00a64e184487f22a4 to your computer and use it in GitHub Desktop.
Useful bookmarklets

Useful Bookmarklets

How to use:

Create a bookmark and replace URL with either of the listed codes

Easier: (google chrome)

  • Triple click to the whole thing
  • COPY!
  • Now hit [CTRL] + [D]
  • Hit edit
    • Tip: Use a short name for it, for it'll lack an icon
  • Paste in URL field
  • Save in bookmarks toolbar (keep it visible)

Easier: (safari)

  • Triple click the code
  • copy it
  • Hit [⌘] + [D]
  • Add the bookmark to your bookmarks toolbar, put a name on it
    • It'll add a bookmark of this page, we'll edit that later
  • Right click the bookmark on the bar to edit its address
  • Paste the address in the textfield that pops up

Google image search:

Open image in new window, hit the bookmark.

javascript:location.href='https://www.google.com/searchbyimage?image_url='+encodeURIComponent(location.href)+'&safe=off'

Current YouTube video's channel's videos as playlist

Open a youtube video, hit the bookmark (doesn't seem to work anymore).

javascript:{let{host,search}=location;host.match(/youtube.com$/g)?((search.match(/&list=UL$/g)||(location.search.match(/list=|index=/g)||[]).length===2)?alert('already a list?'):(search.match(/^\?v=/g)?location.href+='&feature=mfu_in_order&list=UL':alert('is this a video?'))):alert('is this youtube?')}

IQDB (search for anime images)

Open image in new window, hit the bookmark.

javascript:location.href='https://iqdb.org/?url='+encodeURIComponent(location.href)

Yandex reverse image search

Open image in new window, hit the bookmark.

javascript:location.href='https://yandex.com/images/search?rpt=imageview&url='+encodeURIComponent(location.href)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment