您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
unofficial helper for psnine.com (PSNINE)
- // ==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;
- }
- }
- }
- }
- );
- }