CSDN Fucker

Fuck up all shit on CSDN

  1. // ==UserScript==
  2. // @name CSDN Fucker
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Fuck up all shit on CSDN
  6. // @author LYUJ
  7. // @match https://blog.csdn.net/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Your code here...
  15. // solve the folding problems
  16. var folding = document.querySelector("main")
  17. if(folding != null){
  18. folding.querySelector(".article_content").setAttribute("style", "none")
  19. }
  20. // fuck up the adv
  21. var adv = document.querySelector(".csdn-toolbar")
  22. if(adv != null){
  23. adv.remove()
  24. }
  25. // Fuck up the black mask shit
  26. var darkMask = document.getElementsByClassName('mask-dark')
  27. if(darkMask != null){
  28. darkMask[0].remove()
  29. }
  30. // Expand comments and fuck up the expand button
  31. var comments = document.getElementsByClassName('comment-list-box')
  32. if(comments != null){
  33. comments[0].setAttribute("style", "none")
  34. }
  35. var expandShit = document.getElementById('btnMoreComment')
  36. if(expandShit != null){
  37. expandShit.parentElement.remove()
  38. }
  39. })();