Last active
December 4, 2020 16:12
-
-
Save syusui-s/1ab91b3cb9ddc60d623e7a9caeb6fb63 to your computer and use it in GitHub Desktop.
Discord Mute Shortcut (Alt + M)
This file contains hidden or 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
| // ==UserScript== | |
| // @name Discord Mute | |
| // @namespace https://gist.github.com/syusui-s/1ab91b3cb9ddc60d623e7a9caeb6fb63 | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author syusui_s | |
| // @match https://discord.com/channels/* | |
| // @grant none | |
| // @updateURL https://gist.github.com/syusui-s/1ab91b3cb9ddc60d623e7a9caeb6fb63/raw/discord_mute.user.js | |
| // @downloadURL https://gist.github.com/syusui-s/1ab91b3cb9ddc60d623e7a9caeb6fb63/raw/discord_mute.user.js | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| window.addEventListener('keydown', (ev) => { | |
| if (ev.altKey && ev.key === 'm') { | |
| document.querySelector('button[aria-label="ミュート"]').click(); | |
| } | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment