Fuck CSDN

Fuck CSDN!

目前為 2018-12-05 提交的版本,檢視 最新版本

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

QingJ © 2025

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