您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Use arrow keys to go back and forth on comics on GoComics
当前为
// ==UserScript== // @name GoComics control with arrow keys // @namespace https://github.com/AbdurazaaqMohammed/userscripts // @version 1.0 // @description Use arrow keys to go back and forth on comics on GoComics // @author Abdurazaaq Mohammed // @license The Unlicense // @homepage https://github.com/AbdurazaaqMohammed/userscripts // @supportURL https://github.com/AbdurazaaqMohammed/userscripts/issues // @match https://www.gocomics.com/* // @grant none // ==/UserScript== (function() { 'use strict'; document.addEventListener('keydown', function(e) { const key = e.key; if (key == "ArrowLeft") document.querySelector('.js-previous-comic.sm.fa-caret-left.btn-circle.btn-outline-secondary.btn.fa').click(); //Go to previous comic release else if (key == "ArrowRight") document.querySelector('.sm.fa-caret-right.btn-circle.btn-outline-secondary.btn.fa').click();//Go to next comic release // You can add more keys or change them as you want. The documentation for key values can be found here: https://developer.mozilla.org/en-US/docs/web/api/ui_events/keyboard_event_key_values }); })();