fchud / twitch toggle controls

// ==UserScript==
// @name         twitch toggle controls
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  toggle twitch controls (q)
// @author       fchud
// @match        https://www.twitch.tv/*
// @grant        none
// ==/UserScript==

(function() {
    $(document).on('keyup', function(event) {
        if (event.which === 81) {
            var v = $('.player-controls-bottom').css('visibility');
            $('.player-controls-bottom').css('visibility', (v === 'visible' ? 'hidden' : 'visible'));
        }
    });
})();