CSDN Clean

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

04.08.2019 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         CSDN Clean
// @name:zh-CN   CSDN净化
// @namespace    https://slaier.github.io/
// @version      1.4
// @author       slaier
// @description  csdn align center, auto readmore, clean clipboard, no login.
// @description:zh-cn CSDN去广告后居中,自动展开,去除剪贴板劫持,免登录。请配合ABP规则使用:https://raw.githubusercontent.com/Slaier/AdBlockRule/master/AdBlockCN.txt。
// @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").removeAttr("style"),
      $(".readall_box").show().addClass("readall_box_nobg"),
      $(".readall_box").hide().addClass("readall_box_nobg");
      GM_addStyle('body { padding-bottom: 0 !important;}');
      $(".view_comment>a").text("展开所有评论");
    }
    else {
      console.log("请配合ABP规则使用:https://raw.githubusercontent.com/Slaier/AdBlockRule/master/AdBlockCN.txt");
      GM_addStyle('* { margin: auto; padding: 0;}');
      GM_addStyle('main { float: unset;}');
      localStorage.setItem("anonymousUserLimit", ""); // 免登陆
      csdn.clearReadMoreBtn(); // 自动展开 
      $("#btnMoreComment>span").remove(); // 登录误触
      if (csdn.copyright){
        csdn.copyright.init("", "", ""); //去除剪贴板劫持
      }
    }
})();