P9IDFilter

unofficial helper for d7vg.com (PSNINE)

目前为 2014-11-06 提交的版本,查看 最新版本

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

var m_strBoringID = new Array(""); 

$(document).ready(function(){
	switch ( location.host ){
		case 'd7vg.com':
			FilterID();
			break;
	};	
});

function FilterID(){
	$('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('div.post').hide();
					break;
				}				
			}
		}
	}
	);
};