CSDN Clean

csdn align center, auto readmore, clean clipboard, no login.

Version vom 28.07.2019. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         CSDN Clean
// @name:zh-CN   CSDN净化
// @namespace    https://slaier.github.io/
// @version      1.1
// @author       slaier
// @description  csdn align center, auto readmore, clean clipboard, no login.
// @description:zh-cn CSDN去广告后居中,自动展开,去除剪贴板劫持,免登录。
// @include      https://blog.csdn.net/*/article/details/*
// @grant        GM_addStyle
// @icon         https://csdnimg.cn/public/favicon.ico
// @run-at       document-idle
// ==/UserScript==

(function () {
    'use strict';
    console.log(` %c CSDN净化 %c https://slaier.github.io/ `, `color: #fadfa3; background: #23b7e5; padding:5px;`, `background: #1c2b36; padding:5px;`);
    if (navigator.userAgent.indexOf("Android") > -1){ // 安卓
      $(".article_content").css({overflow: "scroll"})
      $(".readall_box").hide().addClass("readall_box_nobg");
      GM_addStyle('body { padding-bottom: 0 !important;}');
    }
    else {
      console.log("请配合ABP规则使用:https://raw.githubusercontent.com/Slaier/AdBlockRule/master/AdBlockCN.txt");
      GM_addStyle('* { margin: auto; padding: 0;}');
      GM_addStyle('main { float: unset;}');
      csdn.copyright.init("", "", ""); //去除剪贴板劫持
      localStorage.setItem("anonymousUserLimit", ""); // 免登陆
      csdn.clearReadMoreBtn(); // 自动展开 
    }
})();