Fuck CSDN

Fuck CSDN!

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

  1. // ==UserScript==
  2. // @name Fuck CSDN
  3. // @version 0.4
  4. // @description Fuck CSDN!
  5. // @author 流星暴雨
  6. // @grant none
  7. // @match http*://blog.csdn.net/*
  8. // @run-at document-body
  9. // @homepageURL https://gf.qytechs.cn/scripts/374950
  10. // @supportURL https://gf.qytechs.cn/scripts/374950
  11. // @namespace Eternal
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. $(function() {
  17. $("#article_content").css("height",'');
  18. $(".hide-article-box").remove();
  19. $(".fourth_column").remove();
  20. $(".pulllog-box").remove();
  21. $(".box-shadow").remove();
  22. $(".adsbygoogle").parent().remove();
  23. $("#commentBox").prev().remove();
  24. $(".recommend-ad-box").remove();
  25. $("#adContent").remove();
  26. });
  27. var timer1=setInterval(function (){
  28. if($(".right-item[id]").size()>0){
  29. clearInterval(timer1);
  30. setTimeout(function (){
  31. $(".right-item[id]").remove();
  32. },50)
  33. }
  34. },10);
  35. window.setInterval_=setInterval;
  36. document.body.insertBefore_=document.body.insertBefore;
  37. var timer;
  38. var mysetInterval=function (fun,time){
  39. //console.log(fun+'');
  40. if((fun+'').match("check-adblock-time")){
  41. //$(".adblock").remove();
  42. //"function" == typeof window.csdn.insertcallbackBlock && window.csdn.insertcallbackBlock();
  43. /*timer=setInterval_(function (){
  44. if($(".check-adblock-bg").size()>0){
  45. clearInterval(timer);
  46. $(".check-adblock-bg").parent().remove();
  47. }
  48. },10);*/
  49. return null;
  50. }else{
  51. return setInterval_(fun,time);
  52. }
  53. }
  54. var myinsertBefore=function (ele,box){
  55. //console.log(ele.innerHTML);
  56. if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
  57. return document.body;
  58. }else{
  59. return document.body.insertBefore_(ele,box);
  60. }
  61. };
  62. document.body.insertBefore=myinsertBefore;
  63. setInterval=mysetInterval;
  64. console.log("Fuck CSDN!")
  65. })();

QingJ © 2025

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