您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Use arrow right or left to go to next or previous chapter.
// ==UserScript== // @name Gunnerkrigg Court Arrow Navigation // @author EleventhEric // @namespace EleventhEric // @description Use arrow right or left to go to next or previous chapter. // @include *://www.gunnerkrigg.com/* // @version 1.0 // @grant none // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // ==/UserScript== //Note: this site uses duplicate class names for "right" and "left" so I had to hard code the correct ones for going to the next or previous comic $(document).keydown(function(e){ // PREV CHAPTER - Left Arrow if (e.keyCode == 37) {document.getElementsByClassName('left')[6].click();} // NEXT CHAPTER - Right Arrow else if (e.keyCode == 39) {document.getElementsByClassName('right')[2].click();} });