ykm_csdn

去除csdn 不喜欢的模块

  1. // ==UserScript==
  2. // @name ykm_csdn
  3. // @namespace csdn
  4. // @version 0.3
  5. // @description 去除csdn 不喜欢的模块
  6. // @author ykm
  7. // @match https://blog.csdn.net/*/article/details/*
  8. // @grant GM_addStyle
  9. // @license MIT
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. GM_addStyle(`
  16. body{
  17. background:url('https://img6.bdstatic.com/img/image/pcindex/sunjunpchuazhoutu.JPG') no-repeat;
  18. background-repeat: no-repeat;
  19. background-size:cover;
  20. background-attachment: fixed;
  21. background-position: center;
  22. }
  23. .programmer1Box{
  24. display:none;
  25. }
  26. #kp_box_479{
  27. display:none;
  28. }
  29. .toolbar-container-right{
  30. display:none;
  31. }
  32. .template-box{
  33. display:none;
  34. }
  35. #asideNewComments{
  36. display:none;
  37. }
  38. .csdn-side-toolbar{
  39. display:none;
  40. }
  41. .aside-box-footer{
  42. display:none;
  43. }
  44. .archive-box{
  45. display:none;
  46. }
  47. #recommendNps{
  48. display:none;
  49. }
  50. ` )
  51. var elem0 = document.getElementsByClassName('data-info d-flex item-tiling');
  52. elem0[0].parentNode.removeChild(elem0[0]);
  53. var elem2 = document.getElementsByClassName('aside-box common-nps-box');
  54. elem2[0].parentNode.removeChild(elem2[0]);
  55.  
  56. })();