CSDN Clean

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

Tính đến 28-07-2019. Xem phiên bản mới nhất.

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

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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.

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

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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.0
// @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");
    }
    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(); // 自动展开 
    }
})();