🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/04 04:48:35
🔄 下次更新时间:2026/01/04 05:48:35
手动刷新缓存

SH Continue Reading Anywhere

When viewing any chapter on Scribble Hub, this will add a button to continue reading from your current bookmarked chapter.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name         SH Continue Reading Anywhere
// @namespace    ultrabenosaurus.ScribbleHub
// @version      0.3
// @description  When viewing any chapter on Scribble Hub, this will add a button to continue reading from your current bookmarked chapter.
// @author       Ultrabenosaurus
// @license      GNU AGPLv3
// @source       https://greasyfork.org/en/users/437117-ultrabenosaurus?sort=name
// @match        https://www.scribblehub.com/read/*/chapter/*
// @icon         https://www.google.com/s2/favicons?domain=scribblehub.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var ficID = window.location.pathname.split("/read/")[1].split("/chapter/")[0].split("-")[0];
    var ficHome = "https://www.scribblehub.com/series/"+ficID+"/";
    if(document.querySelectorAll('div#page div.wi_fic_wrap.chapter div.wi_breadcrumb.chapter a[href^="'+ficHome+'"]').length!=0){
        UBaddContinueReadingAnywhereButton(ficID);
    }
    ficID = ficHome = null;
})();

function UBaddContinueReadingAnywhereButton(ficID) {
    var readURL = "https://www.scribblehub.com/readfirst/"+ficID+"/";
    var mobHeader = document.querySelectorAll('div#page div.ol_mb_header span[style="float:right;"]');

    if(mobHeader.length!=0){
        var btnElemMobile = '<span class="ol_h_i"><a onclick="hide_mm_bar();" href="'+readURL+'"><i class="fa fa-reply fa-rotate-180 fa-flip-horizontal" aria-hidden="true" style="color:#fff;font-size:20px;"></i></a></span>'
        mobHeader[0].insertAdjacentHTML("beforeend", btnElemMobile);
        readURL = mobHeader = btnElemMobile = null;
    }else{
        var btnElemDesktop = '<a dp="yes" class="btn_settings" title="Continue Reading from Bookmarked Chapter" href="'+readURL+'"><i dp="yes" class="fa fa-reply fa-rotate-180 fa-flip-horizontal" aria-hidden="true"></i></a>'
        document.querySelectorAll('div#page div.wi_fic_wrap.chapter div#primary main div.c_set')[0].insertAdjacentHTML("beforeend", btnElemDesktop);
        readURL = mobHeader = btnElemDesktop = null;
    }
}