Skip to content

Instantly share code, notes, and snippets.

@siboehm
Last active February 6, 2024 15:24
Show Gist options
  • Save siboehm/53d2b498e1470d32f0af13b2c39a9520 to your computer and use it in GitHub Desktop.
Save siboehm/53d2b498e1470d32f0af13b2c39a9520 to your computer and use it in GitHub Desktop.
Collection of site search urls

Site-specific search URLs

These work in Firefox and Chrome, where %s is replaced with the search query. For Raycast and Alfred, the %s should be replaced with {query}. For more details also see my blogpost.

How to add

  • Chrome: Settings -> Search engine -> Manage search engines and site search -> Add
  • Firefox: Bookmarks -> Manage Bookmarks -> Add Bookmark, then set the keyword to the desired shortcut

I recommend picking keywords that are easy to memorize, like am=Amazon, an=Anaconda, gi=Github,... and switching to three letters when the two letter abbreviation appears to commonly in a sentence (eg goi=Google images, gom=Google Maps).

Bookmarklets

Chrome: Right click on bookmark bar -> Add page -> Paste JS (including the javascript:) as the URL.

Ar5iv (open ar5iv when on Arxiv):

javascript:(function(){  var url = window.location.href;  var ar5ivUrl;  if(url.includes('arxiv.org')) {    ar5ivUrl = url.replace('arxiv.org', 'ar5iv.labs.arxiv.org');    window.location.href = ar5ivUrl;  } else {    alert('Not an arXiv.org URL');  }})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment