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, up and down to scroll. Num 0 is back to the overview screen of the manga

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Navigator for Reaper Scans/Leviatan Scans/Zero Scans/No Names Scans/KKJ Scans/Edelgarde Scans
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  A navigator to read the various mangas on multiple scan groups. Left arrow for previous chapter, right arrow for next chaper, up and down to scroll. Num 0 is back to the overview screen of the manga
// @author       rheaalleen
// @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
// @namespace    https://greasyfork.org/en/users/599343
// ==/UserScript==

(function() {
    'use strict';

    document.onkeydown = checkKey;

    function checkKey(e) {

        e = e || window.event;

        if (e.keyCode == '39') {
            var x = document.getElementsByClassName('btn btn-sm btn-outline-secondary text-uppercase border-0');
            window.location = x[2].getAttribute("href");
        }
        else if (e.keyCode == '37') {
            var y = document.getElementsByClassName('btn btn-sm btn-outline-secondary text-uppercase border-0');
            window.location = y[3].getAttribute("href");
        }
        else if (e.keyCode == '96') {
            var z = document.getElementsByClassName('btn btn-sm btn-outline-secondary text-uppercase border-0');
            window.location = z[0].getAttribute("href");
        }
}
})();