This project is a minimalistic bang-style search redirector. It lets you define custom "bangs" (like !gh, !yt, etc.) in a simple bangs.json file hosted on GitHub, and redirect users based on their query.
-
The user adds a custom search engine with the url:
https://exmaple.com?q= -
WHen the do a search engine search the script:
- Loads
bangs.jsonfrom this repository - Parses the
!bangand the search terms - Redirects to the appropriate search engine or site with the query
- Loads
Each bang is defined as a key-value pair in bangs.json:
{
"!gh": "https://github.com/search?q=%s",
"!yt": "https://www.youtube.com/results?search_query=%s",
"!wiki": "https://en.wikipedia.org/w/index.php?search=%s"
}!ghβ https://github.com/search?q=%s!ytβ https://www.youtube.com/results?search_query=%s!wikiβ https://en.wikipedia.org/w/index.php?search=%s!perpβ https://www.perplexity.ai/search?q=%s!chatgptβ https://chatgpt.com/?q=%s!chatβ https://chatgpt.com/?q=%s!summaryβ https://search.brave.com/search?q=%s&source=llmSuggest&summary=1!youaiβ https://you.com/search?q=%s&fromSearchBar=true&tbm=youchat&chatMode=default!phindβ https://www.phind.com/search?q=%s&searchMode=auto&allowMultiSearch=true!feloβ https://felo.ai/search?q=%s!ecoaiβ https://www.ecosia.org/chat?q=%s!mistralβ https://chat.mistral.ai/chat?q=%s&mode=ai!misβ https://chat.mistral.ai/chat?q=%s&mode=ai!gβ https://www.google.com/search?q=%s!sβ https://www.startpage.com/sp/search?query=%s!spβ https://www.startpage.com/sp/search?query=%s!wβ https://en.wikipedia.org/wiki/Special:Search?search=%s!nixpkgsβ https://search.nixos.org/packages?query=%s!ddgβ https://duckduckgo.com/?q=%s!qwβ https://www.qwant.com/?q=%s&t=web!qwantβ https://www.qwant.com/?q=%s&t=web!letaβ https://leta.mullvad.net/search?q=%s&engine=brave!mjβ https://www.mojeek.com/search?q=%s&theme=dark!mojeekβ https://www.mojeek.com/search?q=%s&theme=dark!mjsβ https://www.mojeek.com/search?q=%s&theme=dark&fmt=summary!sumβ https://www.mojeek.com/search?q=%s&theme=dark&fmt=summary