CSDN 阅读优化

CSDN 阅读优化,关闭侧边栏和广告

目前為 2019-07-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         CSDN 阅读优化
// @namespace    https://starudream.cn
// @version      1.0.2
// @description  CSDN 阅读优化,关闭侧边栏和广告
// @author       StarUDream
// @match        *://blog.csdn.net/*/article/details/*
// @match        *://*.iteye.com/blog/*
// @grant        none
// @icon         https://csdnimg.cn/public/favicon.ico
// @run-at       document-end
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js
// ==/UserScript==
(function() {
    'use strict';

    var $ = window.jQuery;

    // csdn
    $('aside').remove();
    $('#csdn-toolbar').remove();
    $('#reportContent').remove();
    $('.pulllog-box').remove();
    $('.recommend-right').remove();
    $('.tool-box').remove();
    $('.fourth_column').remove();
    $('.hide-article-box').remove();
    $('.recommend-box').remove();
    $('.article-copyright').remove();
    $('.t0').remove();
    $('#app').remove();

    $('main').css('width', '100%');
    $('#article_content').css('height', '100%');

    // iteye
    $('#header').remove();
    $('#local').remove();
    $('#content > div.blog-sidebar').remove();
    $('#main > div.blog_main > div.boutique-curr-box.blog_comment').remove();

    $('#main').css('width', '100%');
    $('#blog_content').css('height', '100%');
})();