P9IDFilter

unofficial helper for psnine.com (PSNINE)

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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