chieNG

Yahoo!知恵袋の邪魔な質問を非表示にします

La data de 12-03-2015. Vezi ultima versiune.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        chieNG
// @namespace   by syakku
// @description	Yahoo!知恵袋の邪魔な質問を非表示にします
// @include     http://chiebukuro.yahoo.co.jp/dir/list*
// @version     1.0
// @grant       none
// ==/UserScript==

var NG = ["意外と知らない", "http://note", "大喜利"];

var _qalst = document.getElementById("qalst");
var _li = _qalst.getElementsByTagName("li");

list:	for (l=0; l<_li.length; l++){
	var _a = _li[l].getElementsByTagName("a");
	
	for (m=0; m<_a.length; m++){
		
		for (n=0; n<NG.length; n++){
			if (_a[m].text.indexOf(NG[n]) != -1){	
				_li[l].style.display = "none";
				continue list;
			}
		}
	}
}