您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
press n to go to the next page and b for backward
// ==UserScript== // @name etorrent page navigation keybind // @description press n to go to the next page and b for backward // @homepageURL https://gist.github.com/chidea/3ea515a554946d3001ca9f429d1c8612 // @author ChIdea // @version 0.2 // @date 11/23/2017 // @namespace chidea // @match http*://*.etorrent.co.kr/bbs/* // @include http*://etorrent.co.kr/bbs/* // @include http*://*.etobang.co.kr/bbs/* // @include http*://etobang.co.kr/bbs/* // @include http*://*.etorrent.kr/bbs/* // @include http*://etorrent.kr/bbs/* // @include http*://*.etoland.co.kr/bbs/* // @include http*://etoland.co.kr/bbs/* // @grant none // @license MIT License // ==/UserScript== function getButton(accessKey){ return document.querySelector('input[accesskey='+accessKey+']'); } document.onkeypress=function(e){ var ae = document.activeElement; if(ae.tagName === 'TEXTAREA' || (ae.tagName === 'INPUT' && (ae.tagName === 'text' || ae.tagName === 'password'))) return; var k = e.key; if (k==='n' || k==='b') getButton(k).click(); };