Fuck CSDN

Fuck CSDN!

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

  1. // ==UserScript==
  2. // @name Fuck CSDN
  3. // @version 0.3
  4. // @description Fuck CSDN!
  5. // @author 流星暴雨
  6. // @grant none
  7. // @match http*://blog.csdn.net/*
  8. // @run-at document-body
  9. // @homepageURL https://greatest.deepsurf.us/scripts/374950
  10. // @supportURL https://greatest.deepsurf.us/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. });
  22. window.setInterval_=setInterval;
  23. document.body.insertBefore_=document.body.insertBefore;
  24. var timer;
  25. var mysetInterval=function (fun,time){
  26. //console.log(fun+'');
  27. if((fun+'').match("check-adblock-time")){
  28. //$(".adblock").remove();
  29. //"function" == typeof window.csdn.insertcallbackBlock && window.csdn.insertcallbackBlock();
  30. /*timer=setInterval_(function (){
  31. if($(".check-adblock-bg").size()>0){
  32. clearInterval(timer);
  33. $(".check-adblock-bg").parent().remove();
  34. }
  35. },10);*/
  36. return null;
  37. }else{
  38. return setInterval_(fun,time);
  39. }
  40. }
  41. var myinsertBefore=function (ele,box){
  42. //console.log(ele.innerHTML);
  43. if(ele.innerHTML.match("ADP")||ele.innerHTML.match("广告")){
  44. return document.body;
  45. }else{
  46. return document.body.insertBefore_(ele,box);
  47. }
  48. };
  49. document.body.insertBefore=myinsertBefore;
  50. setInterval=mysetInterval;
  51. console.log("Fuck CSDN!")
  52. // Your code here...
  53. })();