您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Arrow Keys used to navigate chapters
// ==UserScript== // @name AO3-navigate-arrows // @namespace a03-navigate-arrows // @version 0.6 // @description Arrow Keys used to navigate chapters // @author kimcheng // @match https://archiveofourown.org/works/*/chapters/* // @require https://code.jquery.com/jquery-latest.js // @grant none // ==/UserScript== (function() { document.addEventListener("keydown", function(e) { if(e.which == 37) { location.href = $('li.chapter.previous').children('a').attr('href'); } else if(e.which == 39) { //alert($('li.chapter.next').children('a').attr('href')); location.href = $('li.chapter.next').children('a').attr('href'); } }) })();