Greasy Fork is available in English.

Fuck CSDN

Fuck CSDN!

Verze ze dne 05. 12. 2018. Zobrazit nejnovější verzi.

  1. // ==UserScript==
  2. // @name Fuck CSDN
  3. // @version 0.2
  4. // @description Fuck CSDN!
  5. // @author 流星暴雨
  6. // @grant none
  7. // @match http*://blog.csdn.net/*
  8. // @namespace Eternal
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. $("#article_content").css("height",'');
  14. $(".hide-article-box").remove();
  15. $(".fourth_column").remove();
  16. window.setInterval_=setInterval;
  17. var timer;
  18. var mysetInterval=function (fun,time){
  19. if((fun+'').match("#check-adblock-time")){
  20. //$(".adblock").remove();
  21. //"function" == typeof window.csdn.insertcallbackBlock && window.csdn.insertcallbackBlock();
  22. /*timer=setInterval_(function (){
  23. if($(".check-adblock-bg").size()>0){
  24. clearInterval(timer);
  25. $(".check-adblock-bg").parent().remove();
  26. }
  27. },10);*/
  28. return null;
  29. }else{
  30. return setInterval_(fun,time);
  31. }
  32. }
  33. document.body.insertBefore_=document.body.insertBefore;
  34. var myinsertBefore=function (ele,box){
  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. setInterval=mysetInterval;
  43. console.log("Fuck CSDN!")
  44. // Your code here...
  45. })();