Greasy Fork is available in English.

csdntools

try to take over the world!

  1. // ==UserScript==
  2. // @name csdntools
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description try to take over the world!
  6. // @author Freelifer
  7. // @match *://blog.csdn.net/*
  8. // @run-at document-end
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. // Your code here...
  16. // @require https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js
  17. console.log('csdntools start...');
  18. // var $ = $ || window.$;
  19. // $('.hide-article-box,.text-center').remove();
  20. document.getElementsByClassName("hide-article-box text-center")[0].remove()
  21. document.getElementsByClassName("comment-box")[0].remove()
  22. document.getElementsByClassName("recommend-box")[0].remove()
  23.  
  24. // $("div.article_content").removeAttr("style");
  25. document.getElementById('article_content').removeAttribute('style');
  26. console.log('csdntools end...');
  27. })();