您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A userscript that uses speech synthesis to read out the words on monkeytype.com. This is helpful for improving typing speed while listening to the words.
// ==UserScript== // @name Speech Synthesis for MonkeyType // @namespace http://github.com/mefengl // @version 0.0.2 // @description A userscript that uses speech synthesis to read out the words on monkeytype.com. This is helpful for improving typing speed while listening to the words. // @author mefengl // @match https://monkeytype.com/ // @icon https://www.google.com/s2/favicons?sz=64&domain=monkeytype.com // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; let lastSpoken = ''; const targetNode = document.getElementById('words'); const pollElement = () => { const text = targetNode.innerText.replace(/\n/g, ' '); if (text !== lastSpoken) { if (lastSpoken !== '') { speechSynthesis.cancel(); } lastSpoken = text; let utterance = new SpeechSynthesisUtterance(text); utterance.rate = 0.8; speechSynthesis.speak(utterance); } }; setInterval(pollElement, 500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址