JLPT看答案的按钮快捷键

为 JLPT 页面添加按钮快捷键,可一键查看答案和关闭弹窗

// ==UserScript==
// @name         JLPT看答案的按钮快捷键
// @namespace    http://tampermonkey.net/
// @version      2025-06-20
// @description  为 JLPT 页面添加按钮快捷键,可一键查看答案和关闭弹窗
// @author       Ramen Curator
// @match        https://dethitiengnhat.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=dethitiengnhat.com
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    document.addEventListener('keydown', function(e) {
        if (e.key === '1') {
            Saiten();       // 调用网站全局函数
            modalClose();
            e.preventDefault();
        }
        if (e.key === '2') {
            Saiten();
            e.preventDefault();
        }
        // 关掉弹窗
        if (e.key === '3') {
            modalClose();
            e.preventDefault();
        }

    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址