chieNG

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

Stan na 12-03-2015. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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;
			}
		}
	}
}