v2ex帖子标题过滤器

自己改关键字

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         v2ex帖子标题过滤器
// @namespace    http://blog.7xiaowu.cn/
// @version      0.1
// @description  自己改关键字
// @author       暗黑游侠
// downloadURL     http://blog.7xiaowu.cn/other/scripts/v2exfilter.js
// @match        https://www.v2ex.com/
// @match        https://v2ex.com/
// @match        http://www.v2ex.com/
// @match        http://v2ex.com/
// @grant        none
// ==/UserScript==


$('.cell.item').each(function(){
    var ret = false ;
    var tstr ;
    $(this).find(".item_title").find("a").each( function(){
        tstr = $(this).html() ;
        if( tstr.toLocaleLowerCase().indexOf("inbox") > -1 ){
            ret = true ;
        }
    } );
    if( ret ){
        console.log("标题为:\"" + tstr + "\"的内容已被过滤");
        $(this).remove();
        
    }
});