Greasy Fork is available in English.
Ctrl + Arrow Key navigation.
当前为
// ==UserScript==
// @name [WM] Accesskey Navigation for Kobatochan.com
// @namespace https://github.com/WidgetMidget/scripts-and-userstyles
// @author WidgetMidget
// @description Ctrl + Arrow Key navigation.
// @version 1.5.4
// @supportURL https://github.com/WidgetMidget/scripts-and-userstyles/issues
// @match *://*.kobatochan.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==/UserScript==
/* globals $ */
var prvCh = function(prv){
var prvId = $('div').find('a').filter(':contains("<< Previous Chapter")');
if ($(prvId).attr("href") == "null") {} else {window.open($(prvId).attr("href"),"_self")}
};
var nxtCh = function(nxt){
var nxtId = $('div').find('a').filter(':contains("Next Chapter >>")');
if ($(nxtId).attr("href") == "null") {} else {window.open($(nxtId).attr("href"),"_self")}
}
document.addEventListener('keydown', function(e){
if (e.ctrlKey)
{
switch (e.keyCode)
{
case 37: prvCh(-1); break;
case 39: nxtCh(1); break;
}
}
}, false);