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.1.1
// @description  不用登录自动显示掘金博客全文
// @author       Lynxz
// @match        https://juejin.im/post/*
// @match        https://juejin.im/entry/*
// @require      http://code.jquery.com/jquery-latest.js
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    // 隐藏 "显示全文" 按钮
    $('.show-full').remove();
    $('.show-full-block').remove();
    // 隐藏右侧边栏
    // entry 和 post 网址的侧边栏名称还不太一样
    $('.entry-public-aside').remove();
    $('div.entry-public-main.shadow').css('max-width','100%');
    $('.container .main-container').css('max-width','100%');
    $('.columen-view-aside').remove();
    $('.columen-view-main').css('max-width','100%');
    $('.container .entry-view').css('max-width','100%');
    $('.container .bottom-container').css('max-width','100%');
    // 显示全文,并取消最大高度限制
    let ct = $('div.post-content-container.hidden');
    ct.css('max-height','');
    ct.removeClass('hidden');
})();