---
# System prepended metadata

title: Gather mute hotkeys

---

# Gather mute hotkeys

```javascript=
// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://gather.town/app/A7sPEtWt6X8dCAYa/sssynology-FCT
// @icon         https://www.google.com/s2/favicons?domain=gather.town
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    window.addEventListener('keydown', (e) => {
        if (e.code === 'KeyM' && e.ctrlKey) {
            let self_mic_button = document.querySelector('.GameVideo-self-video-container button:first-child');
            let first_mic_button_vertical = document.querySelector('.GameVideosContainer-videobar-content.is-vertical button:first-child');
            if (self_mic_button)
                self_mic_button.click();
            else
                first_mic_button_vertical.click();
        }
    }, { capture: true} );
    // Your code here...
})();
```