Greasy Fork

Greasy Fork is available in English.

阅读全文

【非自动关注】【自用,长期维护】【功能有】1. 阅读全文网站支持:CSDN、github.io

当前为 2020-10-21 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         阅读全文
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  【非自动关注】【自用,长期维护】【功能有】1. 阅读全文网站支持:CSDN、github.io
// @author       zhengmingliang
// @match        https://blog.csdn.net/*
// @match        *://*.github.io/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    var $ = $ || window.$;
    var href = window.location.href
    // csdn
    if (href.indexOf('csdn') != -1) {
        console.log("检测到CSDN。。。。")
        if ($("#btn-readmore-zk").length > 0) {  // 已登录
            console.log("检测到有阅读全文关注限制。。。。")
            // 移除阅读全文
            $("#btn-readmore-zk").parent().remove();
            // 使滚动条可见
            // $("#article_content").css('overflow','auto')
            // 优化后:直接将style置为空
            $("#article_content").prop('style', '')
            console.log("已解除阅读全文关注限制。。。。")
        }else if($(".btn-readmore").length > 0){ // 未登录
            $(".btn-readmore").parent().remove();
             // 使滚动条可见
            // $("#article_content").css('overflow','auto')
            // 优化后:直接将style置为空
            $("#article_content").prop('style', '')
        }
    } else if (href.indexOf('github.io') != -1) {
        console.log("检测到github.io。。。。")
        if ($("#read-more-btn").length > 0) {
            console.log("检测到有阅读全文关注限制。。。。")
            // 移除阅读全文
            $("#read-more-btn").parent().remove();
            // 使滚动条可见
            // $("#container").css('overflow','auto')
            // 优化后:直接将style置为空
            $("#container").prop('style', '')
            console.log("已解除阅读全文关注限制。。。。")

        }
        // Your code here...
    }
})();