Reaper-Scans Left/Right Arrow Key Chapter Navigation

Left and Right keyboard arrow key navigation for chapters on reaper-scans.com

目前为 2024-12-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         Reaper-Scans Left/Right Arrow Key Chapter Navigation
// @description  Left and Right keyboard arrow key navigation for chapters on reaper-scans.com
// @author       YourName
// @match        https://reaper-scans.com/*
// @grant        none
// @version 0.0.1.20241227130937
// @namespace https://gf.qytechs.cn/users/1290861
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener("keyup", function(event) {
        const nextChapterButton = document.getElementById('number-go-left'); // Next Chapter
        const prevChapterButton = document.getElementById('number-go-right'); // Previous Chapter (replace with actual ID)

        // Right arrow key for "Next Chapter"
        if (event.key === "ArrowRight" && nextChapterButton) {
            nextChapterButton.click();
        }
        // Left arrow key for "Previous Chapter"
        else if (event.key === "ArrowLeft" && prevChapterButton) {
            prevChapterButton.click();
        }
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址