Greasy Fork

Greasy Fork is available in English.

Navigator for Reaper Scans/Leviatan Scans/Zero Scans/No Names Scans/KKJ Scans/Edelgarde Scans

A navigator to read the various mangas on multiple scan groups. Left arrow for previous chapter, right arrow for next chaper. Home button is back to the overview screen of the manga

当前为 2021-02-03 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Navigator for Reaper Scans/Leviatan Scans/Zero Scans/No Names Scans/KKJ Scans/Edelgarde Scans
// @namespace    secpick.ReaperScans
// @version      0.1
// @description  A navigator to read the various mangas on multiple scan groups. Left arrow for previous chapter, right arrow for next chaper. Home button is back to the overview screen of the manga
// @author       secpick
// @match        https://reaperscans.com/comics/*
// @match        https://leviatanscans.com/comics/*
// @match        https://zeroscans.com/comics/*
// @match        https://the-nonames.com/comics/*
// @match        https://kkjscans.co/comics/*
// @match        https://edelgardescans.com/comics/*
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
 
    document.onkeydown = checkKey;
 
    function get_href(which) {
        var btn_class = which == 'home' ? 'fa-home-alt' : 'fa-arrow' + which
        var btn = document.getElementsByClassName(btn_class)[0]
        if (btn) {
            return btn.parentElement.href
        }
    }
 
    function checkKey(e) {
 
        e = e || window.event;
 
        if (e.keyCode == '39') {
            // right arrow
            window.location = get_href('right') || get_href('home')
        }
        else if (e.keyCode == '37') {
            // left arrow
            window.location = get_href('left') || get_href('home')
        }
        else if (e.keyCode == '36') {
            // home
            window.location = get_href('home')
        }
    }
})();