将宝贵的精力集中于内容本身
// ==UserScript== // @name 博客园沉浸模式 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 将宝贵的精力集中于内容本身 // @author lnwazg // @match *.cnblogs.com/* // @grant none // ==/UserScript== (function () { 'use strict'; function removeAd() { let len = arguments.length; for (var i = 0; i < len; i++) { $(arguments[i]).hide(); } } removeAd("#blogTitle","#navigator","#cnblogs_c2", "#comment_form", "#cnblogs_c1", "#sideBarMain", "#blog_post_info_block", "#sideBar"); $("#mainContent").width("92%").css("marginLeft","15"); $(".forFlow").css("marginLeft","0"); $("body,#header,#footer,.forFlow").css("background","none"); })();