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. // @match *://blog.csdn.net/*/article/details/*
  8. // @grant none
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12.  
  13. (function () {
  14. 'use strict';
  15.  
  16. $('#btn-readmore').click();
  17. var content = $('div.blog-content-box');
  18.  
  19. var info = $('<aside style="z-index: 9999;float: right;"><div class="aside-box"><h3 class="aside-title">个人资料</h3></div></aside>');
  20. $('#asideProfile > .aside-title').remove();
  21. info.append($('#asideProfile'));
  22. info.mouseenter(function(){$('#asideProfile').css('display','');}).mouseleave(function(){$('#asideProfile').css('display','none');});
  23.  
  24. $('body').remove();
  25. $('html').append($('<main></main>').append(info).append(content));
  26. })();

QingJ © 2025

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