Greasy Fork is available in English.

CSDN去广告,推荐,分享,自动全文阅读,不登录查看全部评论

去除CSDN页面广告,推荐信息,分享信息,关联文章,默认全部展开,无需登录可查看全部评论

// ==UserScript==
// @name CSDN去广告,推荐,分享,自动全文阅读,不登录查看全部评论
// @namespace Zeko Scripts
// @match *://blog.csdn.net/*
// @grant none
// @description 去除CSDN页面广告,推荐信息,分享信息,关联文章,默认全部展开,无需登录可查看全部评论
// @author zeko zhang
// @version 1.0.5
// @icon https://csdnimg.cn/public/favicon.ico
// ==/UserScript==

var bbsInterval = 500;
var bbsTimeout = 5000;

$(() => {
  var clearFunc = function () {
        // 删除左侧边栏广告
        $("div[class='csdn-tracking-statistics mb8 box-shadow']").remove();
        // 删除热门文章
        $("#asideHotArticle").remove();
        // 删除左侧边栏下部广告和关于信息
        $("#asideFooter").remove();
        // 删除紧跟正文下的广告
        $("#dmp_ad_58").remove();
        // 删除相关文章推荐
        $(".recommend-box").remove();
        // 删除分享提示
        $("#shareSuggest").remove();
        // 删除VIP,客服,投诉悬浮窗
        $(".csdn-side-toolbar").remove();
        // 删除自定义共同进步
        $("div[id^='asideCustom']").remove();
        // 删除点击阅读更多
        $("div[class='hide-article-box hide-article-pos text-center']").remove();
        // 打开阅读更多页面
        $("#article_content").removeAttr("style");
        // 清除其它迁入的iframe
        $("iframe").remove();
        // google广告块
        $("ins").remove();
        // 展开全部评论
        $(".comment-list-box").removeAttr("style");
        // 删除登录展开全部
        $("div[class='opt-box text-center']").remove();
        // 删除提示登录Mask
        $(".login-mark").remove();
        // 删除提示登录二维码
        $("#passportbox").remove();
  }
  
  clearFunc();
  
  var clearJob = setInterval(function () {
        clearFunc();
    }, bbsInterval);
  
  setTimeout(function () {
      clearInterval(clearJob);
  }, bbsTimeout);
})