CSDN Reformater

remove everything except author information and main content.

当前为 2018-06-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CSDN Reformater
  3. // @namespace http://www.csdn.net/
  4. // @version 0.1
  5. // @description remove everything except author information and main content.
  6. // @author Mianjune Hong
  7. // @license GPL version 3
  8. // @match *://blog.csdn.net/*/article/details/*
  9. // @grant none
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13.  
  14. (function () {
  15. 'use strict';
  16.  
  17. $('#btn-readmore').click();
  18. var content = $('div.blog-content-box');
  19.  
  20. var info = $('<aside style="z-index: 9999;float: right;"><div class="aside-box"><h3 class="aside-title">个人资料</h3></div></aside>');
  21. $('#asideProfile > .aside-title').remove();
  22. info.append($('#asideProfile'));
  23. info.mouseenter(function(){$('#asideProfile').css('display','');}).mouseleave(function(){$('#asideProfile').css('display','none');});
  24. // info.mouseleave();
  25.  
  26. $('body').remove();
  27. $('html').append($('<main style="width: 100%"></main>').append(info).append(content));
  28. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址