Created
March 27, 2020 07:01
-
-
Save hprobotic/b0fead9db29a49fcbee205322ac8c7d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (() => { | |
const toggle = tip => ({ key }) => | |
key === ' ' && document.querySelectorAll('[data-tooltip]').forEach(el => el.dataset.tooltip.includes(tip) && el.click()); | |
document.body.onkeyup = toggle('Turn off microphone'); | |
document.body.onkeydown = toggle('Turn on microphone'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment