Fuck CSDN

Fuck CSDN!

当前为 2018-12-05 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Fuck CSDN
  3. // @version 0.5
  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://gf.qytechs.cn/scripts/374950
  11. // @supportURL https://gf.qytechs.cn/scripts/374950
  12. // @namespace Eternal
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. 'use strict';
  17. if(location.host.match("blog")){
  18. $(function() {
  19. $("#article_content").css("height",'');
  20. $(".hide-article-box").remove();
  21. $(".fourth_column").remove();
  22. $(".pulllog-box").remove();
  23. $(".box-shadow").remove();
  24. $(".adsbygoogle").parent().remove();
  25. $("#commentBox").prev().remove();
  26. $(".recommend-ad-box").remove();
  27. $("#adContent").remove();
  28. });
  29. var timer1=setInterval(function (){
  30. if($(".right-item[id]").size()>0){
  31. clearInterval(timer1);
  32. setTimeout(function (){
  33. $(".right-item[id]").remove();
  34. },50)
  35. }
  36. },10);
  37. window.setInterval_=setInterval;
  38. document.body.insertBefore_=document.body.insertBefore;
  39. var timer;
  40. var mysetInterval=function (fun,time){
  41. //console.log(fun+'');
  42. if((fun+'').match("check-adblock-time")){
  43. //$(".adblock").remove();
  44. //"function" == typeof window.csdn.insertcallbackBlock && window.csdn.insertcallbackBlock();
  45. /*timer=setInterval_(function (){
  46. if($(".check-adblock-bg").size()>0){
  47. clearInterval(timer);
  48. $(".check-adblock-bg").parent().remove();
  49. }
  50. },10);*/
  51. return null;
  52. }else{
  53. return setInterval_(fun,time);
  54. }
  55. }
  56. var myinsertBefore=function (ele,box){
  57. //console.log(ele.innerHTML);
  58. if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
  59. return document.body;
  60. }else{
  61. return document.body.insertBefore_(ele,box);
  62. }
  63. };
  64. document.body.insertBefore=myinsertBefore;
  65. setInterval=mysetInterval;}else if(location.host.match("bbs")){
  66. $(function() {
  67.  
  68. $(".post_body > div[scrolling=no]").remove();
  69. $(".bbs_feed_ad_box").remove();
  70. var timer2=setInterval(function (){
  71. if($(".hide_topic_box").size()>0){
  72. clearInterval(timer2);
  73. $("#bbs_detail_wrap").css("max-height",'');
  74. $(".hide_topic_box").remove();
  75. $(".post_body > div").remove();
  76. $(".pulllog-box").remove();
  77. $("#adContent").remove();
  78. }
  79. },10);
  80. });
  81. }
  82.  
  83. console.log("Fuck CSDN!")
  84. })();

QingJ © 2025

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