Google Bangs

Easily add DuckDuckGo bangs to Google.

Author
kriscross07
Daily installs
0
Total installs
295
Ratings
4 0 0
Version
1.5
Created
2015-07-21
Updated
2015-09-02
License
N/A
Applies to

In DuckDuckGo, there are things called "bangs" which allow you to easily go to sites by typing an exclamation point and the bang. For example, in DuckDuckGo you could type "!gh jQuery" and it would search GitHub for jQuery.

This script allows you to easily add bangs in Google. All you need to do is install and edit the script and in the bangs section add "new Bang(bang,URL when they don't search,URL when they do search,character to replace spaces with);". For example you could add "new Bang('yahoo','https://search.yahoo.com','https://search.yahoo.com/search?p=','+');" and if you search google or type in the address bar (if you have Google as your default search engine) "!yahoo blah blah blah" it will search Yahoo for "blah blah blah". The "yahoo" parameter means when the user's search starts with "!yahoo", and they don't put anything after that, it will take you to "https://search.yahoo.com". But if your search starts with "!yahoo" and you put something after it, such as "!yahoo greasy fork", it will take you to "https://search.yahoo.com/search?p=" plus "greasy fork", and because of the "+" parameter, it will replace spaces with "+", so it will take you to "https://search.yahoo.com/search?p=greasy+fork". The script already comes with a few bangs, so hopefully they will help you.