您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple script that allows you to use the left and right arrow keys to navigate chapters at mtlnovel.com
当前为
// ==UserScript== // @name MTL Novel Arrow Key Nav // @namespace GF-Fear3d // @version 0.2 // @description A simple script that allows you to use the left and right arrow keys to navigate chapters at mtlnovel.com // @author Fear3d // @match https://www.mtlnovel.com/*/*/ // @grant none // @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js // ==/UserScript== (function() { 'use strict'; var nextUrl = ""; var prevUrl = ""; $(document).ready(function() { var nextPage = $("a.next:first") var prevPage = $("a.prev:first") nextUrl = nextPage.attr("href") prevUrl = prevPage.attr("href") }); $(document).ready(function() { document.onkeydown = function(evt) { switch (evt.keyCode) { case 37: // Left Arrow window.location = prevUrl; break; case 39: // Right Arrow window.location = nextUrl; break; } }; }); })();