您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
24/5/2020, 07:48:03
// ==UserScript== // @name FOL - Prev/Next Page // @namespace money4nothing // @match https://forum.finanzaonline.com/threads/* // @grant none // @version 1.1 // @license MIT // @author money4nothing // @description 24/5/2020, 07:48:03 // ==/UserScript== document.addEventListener('keypress', function(e) { if (e.ctrlKey || e.shiftKey || e.altKey || e.metaKey) { return false; } if (e.target.nodeName === 'INPUT' || e.target.nodeName === 'TEXTAREA' || e.target.getAttribute('contenteditable') === 'true') { return false; } let link; if (e.key === 'k') { link = document.querySelector('.pageNav-jump.pageNav-jump--prev'); } if (e.key === 'j') { link = document.querySelector('.pageNav-jump.pageNav-jump--next'); } if (link) { window.location.href = link.href; } return true; }, false);