Press Alt to Speak currently Selection.
目前為
// ==UserScript== // @name Alt Speak Selection // @description Press Alt to Speak currently Selection. // @namespace https://userscript.snomiao.com/ // @version 0.1.0 // @author [email protected] // @match *://*/* // @grant none // ==/UserScript== window.addEventListener('keyup', (e)=> e.key ==='Alt' && (speechSynthesis.cancel(), speechSynthesis.speak(new SpeechSynthesisUtterance(window.getSelection().toString()))) )