扇贝 单词小助手

空格进入下一个单词功能 拼写打卡更方便

// ==UserScript==
// @name         扇贝 单词小助手
// @namespace    http://tampermonkey.net/
// @version      0.1.0
// @description  空格进入下一个单词功能 拼写打卡更方便
// @author       光影
// @match        https://web.shanbay.com/wordsweb/#/study*
// @grant        GM_addStyle
// ==/UserScript==

(function() {
    'use strict';
    window.onload=function(){
        GM_addStyle('.Layout_page__2Wedt{padding-bottom:0px;}')
        GM_addStyle('.index_btnBox__pXO_l{margin-bottom: 100px;}')
        const noList = ['Footer_footerWrap__L4iuD','Message_message__w-TNe','BayTrans_tag__I6e7V']
        for (var i of noList){
            GM_addStyle('.'+ i+'{display:none;}')

        }
        
        document.onkeydown = function(event){
                    if(event.keyCode==32){
                        // 事件 
                        var nextOne = document.querySelectorAll(".StudyPage_nextBtn__1ygGn")[0]
                        nextOne.click()
                        console.log("按下了空格键")
                    }
                }






    };
})();