// ==UserScript== // @name 扇贝单词小助手 // @namespace http://tampermonkey.net/ // @version 0.3 // @description 数字小键盘进行发音,数字键3,US发音,数字键3,US发音 // @author You // @match https://web.shanbay.com/wordsweb/* // @icon https://static.baydn.com/static/img/shanbay_favicon.png // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js // @grant unsafeWindow // @downloadURL none // ==/UserScript== (function() { 'use strict'; $(document).keydown(function(event){ // 数字键3,US发音 if(event.keyCode == 99){ $(".index_trump__3bTaM:last").click() $(".Pronounce_audio__3xdMh:last").click() } // 数字键4,UK发音 if(event.keyCode == 100){ $(".index_trump__3bTaM:first").click() $(".Pronounce_audio__3xdMh:first").click() } }); })();