CSDN Reformater

remove everything except author information and main content.

目前为 2018-06-26 提交的版本。查看 最新版本

// ==UserScript==
// @name         CSDN Reformater
// @namespace    http://www.csdn.net/
// @version      0.1
// @description  remove everything except author information and main content.
// @author       Mianjune Hong
// @license      GPL version 3
// @match        *://blog.csdn.net/*/article/details/*
// @grant        none
// @run-at       document-end
// ==/UserScript==


(function () {
    'use strict';

    $('#btn-readmore').click();
    var content = $('div.blog-content-box');

    var info = $('<aside style="z-index: 9999;float: right;"><div class="aside-box"><h3 class="aside-title">个人资料</h3></div></aside>');
    $('#asideProfile > .aside-title').remove();
    info.append($('#asideProfile'));
    info.mouseenter(function(){$('#asideProfile').css('display','');}).mouseleave(function(){$('#asideProfile').css('display','none');});
    // info.mouseleave();

    $('body').remove();
    $('html').append($('<main style="width: 100%"></main>').append(info).append(content));
})();

QingJ © 2025

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