您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press space to open more info, and again to open all info
// ==UserScript== // @name Space to open prompt // @namespace https://greasyfork.org/en/users/749682-catfather // @version 1.0 // @description Press space to open more info, and again to open all info // @author catfather // @match https://www.wanikani.com/review/session // @match https://www.wanikani.com/lesson/session // @icon https://www.google.com/s2/favicons?domain=wanikani.com // @grant none // ==/UserScript== (function() { 'use strict'; document.addEventListener('keyup', function(e) { if (e.keyCode !== 32) return; var itemInfo = document.querySelector('#option-item-info'); if (itemInfo.getAttribute('class') === 'active') document.querySelector('#all-info').click(); else itemInfo.click(); }); })();