// ==UserScript== // @name CSDN 去广告沉浸阅读模式 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 清理 CSDN 底部提示栏及广告并直接展开内容 // @icon https://avatar.csdn.net/D/7/F/3_nevergk.jpg // @author sven // @include https://blog.csdn.net/* // @include https://bbs.csdn.net/topics/* // @include https://*.iteye.com/blog/* // @run-at document-end // @match <$URL$> // @downloadURL none // ==/UserScript== (function() { 'use strict'; (() => { const sheets = ` .post_feed_box,.topic_r,.mod_topic_wrap,#bbs_title_bar,#bbs_detail_wrap,#left-box,main {width: 100% !important;} #header,.blog-sidebar,.blog-sidebar,#new_post.login,.mod_fun_wrap,.hide_topic_box,.bbs_bread_wrap,.news-nav,.right-box,aside,#kp_box_476,.tool-box,.recommend-right,.pulllog-box,.adblock,.fourth_column,.hide-article-box,#csdn-toolbar,.meau-gotop-box {display: none !important;} #blog_content,#bbs_detail_wrap,.article_content {height: auto !important;} #bbs_detail_wrap {max-height: none !important;} #main {width: calc(100% - 208px) !important;} #page {margin-top: 0 !important;} ` const sheet = document.createTextNode(sheets) const el = document.createElement('style') el.appendChild(sheet) document.getElementsByTagName('head')[0].appendChild(el) })() })();