Duck Hide Sites

Hide specific sites from DuckDuckGo search results

当前为 2015-12-30 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
IzzySoft
评分
0 0 0
版本
1
创建于
2015-12-30
更新于
2015-12-30
大小
2.1 KB
许可证
暂无
适用于

DuckDuckGo: Hide results by host name

There are many reasons why one might not wish to see results from specific domains:

  • they just serve a teaser, but the real content is paywalled (experts-exchange.com)
  • they have nothing but duped content (many Stack Exchange sites experience this)
  • they are known for very low quality

Whatever your specific reasons, you can hide them from DuckDuckGo results with this little script. It doesn't feature a fancy GUI (patches welcome, or you fork it and add them yourself), so for now you'll have to edit the script to manage sites-to-hide. There are two variables for that at the very beginning of the script: unwanted are exact host names, so e.g. experts-exchange.com only matches experts-exchange.com (as e.g. in http://experts-exchange.com/*), while unwantedWild holds regular expressions – with e.g. .*\\.jquery.com matching all sub-domains of jquery.com (www.jquery.com, forum.jquery.com etc).

The following example is definitely not real-life, but should demonstrate the usage:

var unwanted = ['experts-exchange.com','api.jquery.com','datatables.net'];
var unwantedWild = ['.*\\.jquery.com'];