P9IDFilter

unofficial helper for psnine.com (PSNINE)

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name		P9IDFilter
// @description unofficial helper for psnine.com (PSNINE)
// @author		jimmyleo
// @namespace	com.jimmyleo.psnine.idfilter 
// @include		http://*psnine.com/*
// @version     0.04
// @require		http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==

var m_strBoringID = new Array(""); 

$(document).ready(function(){	
	if ( 0 === location.pathname.indexOf('/topic/') || 0 === location.pathname.indexOf('/gene/') ){
		Filter('div.post');
	}
	else{
		Filter('li');
	}
});

function Filter( ParentClassPattern ){
	$('a').each( function(index){
		var strID = $(this).text();
		if ( -1 !== $(this).attr('class').indexOf('node') ){		
			for (var i = 0; i < m_strBoringID.length; i++) {
				if ( m_strBoringID[i] == strID ) {
					$(this).parents(ParentClassPattern).hide();
					break;
				}				
			}
		}
	}
	);
}