CSDN Clean

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

נכון ליום 28-07-2019. ראה הגרסה האחרונה.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey 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 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.

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

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!)

  1. // ==UserScript==
  2. // @name CSDN Clean
  3. // @name:zh-CN CSDN净化
  4. // @namespace https://slaier.github.io/
  5. // @version 1.2
  6. // @author slaier
  7. // @description csdn align center, auto readmore, clean clipboard, no login.
  8. // @description:zh-cn CSDN去广告后居中,自动展开,去除剪贴板劫持,免登录。请配合ABP规则使用:https://raw.githubusercontent.com/Slaier/AdBlockRule/master/AdBlockCN.txt。
  9. // @include https://blog.csdn.net/*/article/details/*
  10. // @grant GM_addStyle
  11. // @icon https://csdnimg.cn/public/favicon.ico
  12. // @run-at document-idle
  13. // ==/UserScript==
  14.  
  15. (function () {
  16. 'use strict';
  17. console.log(` %c CSDN净化 %c https://slaier.github.io/ `, `color: #fadfa3; background: #23b7e5; padding:5px;`, `background: #1c2b36; padding:5px;`);
  18. if (navigator.userAgent.indexOf("Android") > -1){ // 安卓
  19. $(".article_content").removeAttr("style"),
  20. $(".readall_box").show().addClass("readall_box_nobg"),
  21. $(".readall_box").hide().addClass("readall_box_nobg");
  22. GM_addStyle('body { padding-bottom: 0 !important;}');
  23. }
  24. else {
  25. console.log("请配合ABP规则使用:https://raw.githubusercontent.com/Slaier/AdBlockRule/master/AdBlockCN.txt");
  26. GM_addStyle('* { margin: auto; padding: 0;}');
  27. GM_addStyle('main { float: unset;}');
  28. csdn.copyright.init("", "", ""); //去除剪贴板劫持
  29. localStorage.setItem("anonymousUserLimit", ""); // 免登陆
  30. csdn.clearReadMoreBtn(); // 自动展开
  31. }
  32. })();