P9IDFilter

unofficial helper for psnine.com (PSNINE)

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