您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
CSDN阅读优化
当前为
// ==UserScript== // @name CSDN优化 // @description CSDN阅读优化 // @namespace Violentmonkey Scripts // @match *://*.blog.csdn.net/*/article/details/* // @grant none // @version 1.0 // ==/UserScript== function hide(dom) { if (!dom) { return } if (dom instanceof NodeList) { dom.forEach(function(item, index) { item.style.display = 'none' }) } if (dom instanceof Node) { dom.style.display = 'none' } } // 去除查看更多登陆限制 hide(document.querySelector('.hide-article-box')) document.querySelector('#article_content').style.height = 'auto' document.querySelector('#article_content').style.overflow = 'auto' // 底栏 hide(document.querySelector('.pulllog-box')) // 去除广告 hide(document.querySelectorAll('.recommend-ad-box')) hide(document.querySelector('#adContent')) hide(document.querySelector('._360_interactive')) hide(document.querySelector('.fourth_column')) document.querySelectorAll('main>*').forEach(function(item, index) { var idStr = item.getAttribute('id') || '' if (idStr.indexOf('_ad') != -1) { hide(item) } }) document.querySelectorAll('aside>*').forEach(function(item, index) { var classStr = item.className || '' var idStr = item.getAttribute('id') || '' if (classStr.indexOf('csdn-tracking-statistics') != -1) { hide(item) } else if (idStr == 'asideFooter') { if (item.children.length == 2) { hide(item.children[0]) } } })
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址