Google Bangs

Easily add DuckDuckGo bangs to Google.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
kriscross07
日安装量
0
总安装量
318
评分
5 0 0
版本
1.5
创建于
2015-07-21
更新于
2015-09-02
大小
1.9 KB
许可证
暂无
适用于

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.