Greasy Fork

来自缓存

Greasy Fork is available in English.

I just don't want to see it.

love&peace

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         I just don't want to see it.
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  love&peace
// @author       Nobody
// @include      *://*.jjwxc.net/*
// @exclude      https://wap.jjwxc.net/*
// @require      https://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==
var loading = document.createElement("div");
loading.innerHTML = "<div id='a_mask' style='width: 100%;height: 100%;position: fixed;top: 0px;left: 0px;display: block;z-index: 2001;background-color: rgb(0, 0, 0);opacity: 1;'><img id='a_mask_img' style='position:fixed;top:0;left:0;width:100%;height:100%;' src='https://s1.ax1x.com/2018/04/11/CAK1ZF.gif'/></div>";
document.body.insertBefore(loading, document.body.firstChild);

(function() {
    'use strict';
    var keywords = [];
    var novelIds = [];
    var authorIds=['1322620'];
    $.each(keywords,function(i){
        var keyword = keywords[i];
        if(keyword){
            $('a:contains('+keyword+')').each(function(){
                //console.log('I black you cauz you contain keyword:'+ keyword);
                $(this).html('████████');
                $(this).removeAttr('href');
                $(this).removeAttr('title');
                $(this).removeAttr('alt');
            });
        }
    });

    $.each(authorIds,function(i){
        var authorId = authorIds[i];
        if(authorId){
            $.ajax({
                url: "oneauthor.php?authorid="+authorId,
                cache: false,
                async: true,
                success: function (html) {
                    var rawData = html.split('href="');
                    for(var i=0;i<rawData.length;i++){
                        var rawData0 = rawData[i];
                        if(rawData0.indexOf('novelid=')!=-1){
                            var rawData1 = rawData0.split('">')[0];
                            if(rawData1.indexOf('novelid=')!=-1){
                                if(rawData1.indexOf('"')!=-1){
                                    rawData1 = rawData1.split('"')[0];
                                }
                                var myNovelId = rawData1.split('novelid=')[1];
                                if(myNovelId){
                                    $('a[href$="novelid='+myNovelId+'"]').each(function(){
                                        //console.log('I black you cauz I dislike novel:'+ novelId);
                                        $(this).html('████████');
                                        $(this).removeAttr('href');
                                        $(this).removeAttr('title');
                                        $(this).removeAttr('alt');
                                    });
                                }

                            }
                        }
                    }
                }
            });
            $('a[href$="authorid='+authorId+'"]').each(function(){
                //console.log('I black you cauz I dislike author:'+ authorId);
                $(this).html('████████');
                $(this).removeAttr('href');
                $(this).removeAttr('title');
                $(this).removeAttr('alt');
            });
        }
    });

    $.each(novelIds,function(i){
        var novelId = novelIds[i];
        if(novelId){
            $('a[href$="novelid='+novelId+'"]').each(function(){
                //console.log('I black you cauz I dislike novel:'+ novelId);
                $(this).html('████████');
                $(this).removeAttr('href');
                $(this).removeAttr('title');
                $(this).removeAttr('alt');
            });
        }
    });
    removeLoadMask();
})();

function removeLoadMask(){
    $('#a_mask').remove();
}