您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Navigate through pages of in-gallery thumbnails with A/D or arrows.
当前为
// ==UserScript== // @name G.E/EX Navigate Gallery Thumbnails // @description Navigate through pages of in-gallery thumbnails with A/D or arrows. // @author Hen Tie // @homepage http://hen-tie.tumblr.com/ // @namespace https://greasyfork.org/en/users/8336 // @include http://g.e-hentai.org/g/* // @include http://exhentai.org/g/* // @include https://g.e-hentai.org/g/* // @include https://exhentai.org/g/* // @grant GM_getValue // @grant GM_setValue // @run-at document-start // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js // @icon https://i.imgur.com/RPv1X1r.png // @version 2.0 // ==/UserScript== document.onkeydown = checkNumber; function checkNumber(e) { e = e || window.event; if ($(e.target).is('input, textarea')) { return; } if (e.keyCode == '37') { // left arrow, back page $('table.ptt td:first-child a').click(); } else if (e.keyCode == '39') { // right arrow, next page $('table.ptt td:last-child a').click(); } else if (e.keyCode == '68') { // d key, next page $('table.ptt td:last-child a').click(); } else if (e.keyCode == '65') { // d key, back page $('table.ptt td:first-child a').click(); } else if (e.keyCode == '87') { // d key, first page $('table.ptt td:nth-child(2) a').click(); } else if (e.keyCode == '83') { // s key, last page $('table.ptt td:nth-last-child(2) a').click(); } }