Greasy Fork

来自缓存

Greasy Fork is available in English.

掘金界面宽屏布局

修改掘金文章页面布局,更加美观,显示更多的内容。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         掘金界面宽屏布局
// @namespace    http://tampermonkey.net/
// @version      0.11
// @description  修改掘金文章页面布局,更加美观,显示更多的内容。
// @author       [email protected]
// @match        *://juejin.im/*
// @grant        none
// @icon        https://b-gold-cdn.xitu.io/favicons/v2/favicon-32x32.png
// @require      https://libs.baidu.com/jquery/2.0.0/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...

    setTimeout(
        function(){
            // 删除左侧的分享按钮列表
            $(".article-suspended-panel.article-suspended-panel").remove();
            // 删除左侧广告“掘金小册”
            $(".index-book-collect").remove();
            $(".sidebar-bd-entry").remove();

            // 正文最大宽屏
//             $(".container.main-container").css({"max-width":"92%"});
//             $(".container.main-container").css({"margin-left":"6%"});
            // 文字宽度
            $(".main-area.article-area").css({"width":"95%"});

            // 右侧目录定位
            $(".sidebar.sidebar").css({"right":"-16%"});


            // 新掘金布局    margin: 0 2%;
            // https://juejin.im/entry/5a426dd3518825696f7e4374
            $(".container.main-container").css("max-width","83%");
            $(".container.main-container").css("margin","2%");
            $(".entry-public-main.shadow").css("max-width","82%");

            // 隐藏掘金下载app广告
            $(".sidebar-block.app-download-sidebar-block.shadow").remove();



        },1000);
})();