Fuck CSDN

Fuck CSDN!

2018-12-05 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

  1. // ==UserScript==
  2. // @name Fuck CSDN
  3. // @version 1.0
  4. // @description Fuck CSDN!
  5. // @author 流星暴雨
  6. // @grant none
  7. // @match http*://blog.csdn.net/*
  8. // @match http*://bbs.csdn.net/*
  9. // @run-at document-body
  10. // @homepageURL https://greatest.deepsurf.us/scripts/374950
  11. // @supportURL https://greatest.deepsurf.us/scripts/374950
  12. // @namespace Eternal
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. var extension = true;//如为真则开启拓展功能 去除 联系方式/赚零钱/传资源
  18.  
  19. if(location.host.match("blog")){
  20. $(function() {
  21. $("#article_content").css("height",'');
  22. $(".hide-article-box").remove();
  23. $(".fourth_column").remove();
  24. $(".pulllog-box").remove();
  25. $(".box-shadow").remove();
  26. $(".aside-box > div[data-track-click]").parent().remove();
  27. $(".BAIDU_DUP_fp_wrapper").remove();
  28. $(".adsbygoogle").parent().remove();
  29. $("#commentBox").prev().remove();
  30. $(".recommend-ad-box").remove();
  31. $("#adContent").remove();
  32. $("div[id*='kp_box']").remove();
  33.  
  34. csdn.copyright.init=function (){};
  35.  
  36. if(extension){
  37. $(".gitChat").remove();
  38. $("#asideFooter").remove();
  39. }
  40. });
  41. var timer1=setInterval(function (){
  42. if($(".right-item[id]").size()>0){
  43. clearInterval(timer1);
  44. setTimeout(function (){
  45. $(".right-item[id]").remove();
  46. },50)
  47. }
  48. },10);
  49. window.setInterval_=setInterval;
  50. document.body.insertBefore_=document.body.insertBefore;
  51. var timer;
  52. var mysetInterval=function (fun,time){
  53. //console.log(fun+'');
  54. if((fun+'').match("check-adblock-time")){
  55. //$(".adblock").remove();
  56. //"function" == typeof window.csdn.insertcallbackBlock && window.csdn.insertcallbackBlock();
  57. /*timer=setInterval_(function (){
  58. if($(".check-adblock-bg").size()>0){
  59. clearInterval(timer);
  60. $(".check-adblock-bg").parent().remove();
  61. }
  62. },10);*/
  63. return null;
  64. }else{
  65. return setInterval_(fun,time);
  66. }
  67. }
  68. var myinsertBefore=function (ele,box){
  69. //console.log(ele.innerHTML);
  70. if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
  71. return document.body;
  72. }else{
  73. return document.body.insertBefore_(ele,box);
  74. }
  75. };
  76. document.body.insertBefore=myinsertBefore;
  77. setInterval=mysetInterval;
  78. }else if(location.host.match("bbs")){
  79. $(function() {
  80. $(".post_body > div[scrolling=no]").remove();
  81. $(".bbs_feed_ad_box").remove();
  82. if(extension){
  83. $(".gitChat").remove();
  84. $(".footer_box").empty();
  85. $(".footer_box").css("visibility","hidden");
  86. }
  87.  
  88. var timer2=setInterval(function (){
  89. if($(".hide_topic_box").size()>0){
  90. clearInterval(timer2);
  91. $("#bbs_detail_wrap").css("max-height",'');
  92. $(".hide_topic_box").remove();
  93. $(".post_body > div").remove();
  94. $(".pulllog-box").remove();
  95. $("#adContent").remove();
  96. }
  97. },10);
  98. });
  99. }
  100.  
  101. console.log("Fuck CSDN!")
  102. })();