Greasy Fork is available in English.

Fuck CSDN

Fuck CSDN!

ของเมื่อวันที่ 05-12-2018 ดู เวอร์ชันล่าสุด

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