CSDN Reformater

hide everything except author information and main content.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         CSDN Reformater
// @namespace    http://www.csdn.net/
// @version      0.1.2
// @description  hide 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-idle
// ==/UserScript==


(function () {
    'use strict';

    $('#btn-readmore').click();
    $('script').remove();

    var info = $('<aside style="float: none;"></aside>');
    $('#asideProfile > .aside-title').remove();
    info.append($('#asideProfile'));
    info.mouseleave(function(){$('#asideProfile').css('display','none');});
    $('#mainBox>main div.article-title-box').mouseenter(function(){$('#asideProfile').css('display','');}).mouseleave(function(){$('#asideProfile').css('display','none');});

    $('#mainBox>main div.article-title-box').append(info);
    $('#mainBox').attr('style', 'margin: 2em auto;max-width: 66em;');

    $('html>head').append('<style type="text/css">body>*, #mainBox>*, main>*, recommend-ad-box{display:none!important;}#mainBox, #mainBox>main, main>.blog-content-box, main, #author>aside{display:block!important;} main{width:100%!important;} body{min-width:0!important;background:#f5f6f7!important;}</style>');
    // div.recommend-box{display: block !important;padding-top: 6em;}

    info.mouseleave();
})();