Fuck CSDN

去除CSDN BBS&BLOG&DOWNLOAD&WWW ADP检测/广告/展开全文限制/复制小尾巴/其它

目前为 2018-12-14 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Fuck CSDN
  3. // @version 1.2
  4. // @description 去除CSDN BBS&BLOG&DOWNLOAD&WWW ADP检测/广告/展开全文限制/复制小尾巴/其它
  5. // @author 流星暴雨
  6. // @grant none
  7. // @match http*://blog.csdn.net/*
  8. // @match http*://bbs.csdn.net/*
  9. // @match http*://download.csdn.net/*
  10. // @match http*://www.csdn.net/*
  11. // @run-at document-body
  12. // @homepageURL https://gf.qytechs.cn/scripts/374950
  13. // @supportURL https://gf.qytechs.cn/scripts/374950
  14. // @namespace Eternal
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19. var extension = true;//如为真则开启拓展功能 去除 联系方式/赚零钱/传资源
  20.  
  21. var hook=function(){
  22. window.setInterval_=setInterval;
  23. var mysetInterval=function (fun,time){
  24. //console.log(fun+'');
  25. if((fun+'').match("check-adblock-time")){
  26. return null;
  27. }else{
  28. return setInterval_(fun,time);
  29. }
  30. }
  31. setInterval=mysetInterval;
  32. document.body.insertBefore_=document.body.insertBefore;
  33. var myinsertBefore=function (ele,box){
  34. //console.log(ele.innerHTML);
  35. if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
  36. return document.body;
  37. }else{
  38. return document.body.insertBefore_(ele,box);
  39. }
  40. };
  41. document.body.insertBefore=myinsertBefore;
  42. }
  43.  
  44. if(location.host.match("blog")){
  45. $(function() {
  46. $("#article_content").css("height",'');
  47. $(".hide-article-box").remove();
  48. $(".fourth_column").remove();
  49. $(".pulllog-box").remove();
  50. $(".box-shadow").remove();
  51. $(".aside-box > div[data-track-click]").parent().remove();
  52. $(".BAIDU_DUP_fp_wrapper").remove();
  53. $(".adsbygoogle").parent().remove();
  54. $("#commentBox").prev().remove();
  55. $(".recommend-ad-box").remove();
  56. $("#adContent").remove();
  57. $("div[id*='kp_box']").remove();
  58.  
  59. csdn.copyright.init=function (){};
  60.  
  61. $("img[onerror]").remove();
  62.  
  63. if(extension){
  64. $(".gitChat").remove();
  65. $(".persion_article").remove();
  66. }
  67. });
  68. var timer1=setInterval(function (){
  69. if($(".right-item[id]").size()>0){
  70. clearInterval(timer1);
  71. setTimeout(function (){
  72. $(".right-item[id]").remove();
  73. },50)
  74. }
  75. },10);
  76.  
  77. hook();
  78. }else if(location.host.match("bbs")){
  79. $(function() {
  80. $(".post_body > div[scrolling=no]").remove();
  81. $(".bbs_feed_ad_box").remove();
  82. $(".post_body > div").remove();
  83. $(".pulllog-box").remove();
  84. $("#adContent").remove();
  85. $("div[id*='kp_box']").remove();
  86.  
  87. if(extension){
  88. $(".gitChat").remove();
  89. $(".persion_article").empty();
  90. $(".persion_article").css("visibility","hidden");
  91. }
  92.  
  93. var timer2=setInterval(function (){
  94. if($(".hide_topic_box").size()>0){
  95. clearInterval(timer2);
  96. $("#bbs_detail_wrap").css("max-height",'');
  97. $(".hide_topic_box").remove();
  98. }
  99. },10);
  100. });
  101. }else if(location.host.match("download")){
  102. $(".check-adblock-bg").parent().remove();
  103.  
  104. $(function() {
  105. $(".dl_mar").remove();
  106. $(".right_bottom").remove();
  107. $(".hot_arti_list > div").remove();
  108. $("#adContent").remove();
  109. $("#album_detail_wrap > div:not(.dl_more)").remove();
  110. $(".dl_edu").remove();
  111. $("div[id*='kp_box']").remove();
  112.  
  113. if(extension){
  114. $(".gitChat").remove();
  115. $(".fixed_dl").remove();
  116. }
  117. });
  118.  
  119. hook();
  120.  
  121. var timer3=setInterval(function (){
  122. if(document.body.insertBefore_==undefined){
  123. clearInterval(timer3);
  124. document.body.insertBefore_=document.body.insertBefore;
  125. var myinsertBefore=function (ele,box){
  126. //console.log(ele.innerHTML);
  127. if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
  128. return document.body;
  129. }else{
  130. return document.body.insertBefore_(ele,box);
  131. }
  132. };
  133. document.body.insertBefore=myinsertBefore;
  134. }
  135. },10);
  136.  
  137. }else if(location.host.match("www")){
  138. $(function() {
  139. $(".banner-ad-box").remove();
  140. $(".slide-outer").remove();
  141. $(".indexSuperise").remove();
  142. $("div[id*='kp_box']").remove();
  143.  
  144. var timer4=setInterval(function (){
  145. if($("#adContent").size()>0){
  146. clearInterval(timer4);
  147. $("#adContent").remove();
  148. }
  149. },10);
  150.  
  151. if(extension){
  152. $(".gitChat").remove();
  153. $(".persion_article").remove();
  154. }
  155. });
  156. }
  157.  
  158. console.log("Fuck CSDN!")
  159. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址