CSDN自动阅读全文

CSDN自动阅读全文删除一些广告

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         CSDN自动阅读全文
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description   CSDN自动阅读全文删除一些广告
// @author       EdgarLi
// @match        *://blog.csdn.net
// @match        *://blog.csdn.net/*
// @match        *://bbs.csdn.net/*
// @match        *://so.csdn.net/*
// @match        *://www.csdn.net
// @match        *://www.csdn.net/*
// @grant        none
// ==/UserScript==

(function() {
    $('#btn-readmore').click();
    var url = location.href;
    var blogcsdn = /blog.csdn.net/i;
    if (blogcsdn.test(url)) {
        $(".box-box-large").remove();
        $("#asideProfile").next().remove();
        $($("#asideFooter").find("div").first()).remove();
        $(".banner-ad-box").remove();
        $($("aside div").first()).remove();
        $("#asideFooter").remove();
        $("#layerd").remove();
        $("#reportContent").remove();
        $("main").css("margin-bottom", "0px");
        $("main").css("float", "none");
        $("main").css("margin", "auto");
        $(".advert-bg").remove();
        $(".advert-cur").remove();
        $('newsfeed').remove();
        $('aside').remove();
    }
})();