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.
- 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).
- Amazon (Germany): https://www.amazon.de/s?k=%s
- Anaconda (Python): https://anaconda.org/search?q=%s
- Chrome history (doesn't seem to work from Alfred, only within chrome itself): chrome://history/?q=%s
- Connected Papers (paper search engine): https://www.connectedpapers.com/search?q=%s
- Docker hub: https://hub.docker.com/search?q=%s&type=image
- Emojipedia: https://emojipedia.org/search/?q=%s
- Github: https://github.com/search?type=repositories&q=%s
- Github code search: https://cs.github.com/?q=%s
- Go packages: https://pkg.go.dev/search?q=%s
- Goodreads: https://www.goodreads.com/search?search_type=books&q=%s
- Google Docs: https://drive.google.com/drive/search?q=%s
- Google Images: https://www.google.com/search?tbm=isch&q=%s
- Google Maps: https://www.google.com/maps/search/%s?hl=en&source=opensearch
- Google Scholar: https://scholar.google.com/scholar?q=%s
- HackerNews: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=%s&sort=byPopularity&type=all
- HackingCpp: https://www.google.com/search?q=%s%20site:hackingcpp.com
- Leo (Germany ⇔ English translations): https://dict.leo.org/german-english/?search=%s
- Linux Weekly News (through Google): https://www.google.com/search?q=%s%20site:lwn.net
- Lobste.rs: https://lobste.rs/search?what=comments&order=relevance&q=%s
- Man pages (through Google): https://www.google.com/search?sitesearch=man7.org/linux/man-pages&q=%s
- Northdata (Germany company register): https://www.northdata.de/?countries=&query=%s
- Python Package Index (PyPI): https://pypi.org/search/?q=%s
- Reddit: https://www.reddit.com/search?q=%s
- Stackoverflow (through Google): https://www.google.com/search?q=%s%20site:stackexchange.com%20OR%20site:stackoverflow.com
- Twitter: https://twitter.com/search?q=%s
- Wayback Machine: http://web.archive.org/web/20230000000000*/%S
- Wiktionary: https://en.wiktionary.org/w/index.php?title=Special%3ASearch&search=%s
- Wiki media: https://commons.wikimedia.org/w/index.php?title=Special%3ASearch&search=%s
- Wikipedia:
- Youtube: https://www.youtube.com/results?search_query=%s
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'); }})();