rabbit flush

goal of this script is to make fullcreen great again

目前为 2017-12-01 提交的版本。查看 最新版本

// ==UserScript==
// @name        rabbit flush
// @namespace   hebiohime
// @description goal of this script is to make fullcreen great again
// @include     *://www.rabb.it/*
// @version     1
// @grant       none
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at       document-end
// ==/UserScript==

// ==UserScript==
// @name        rabbit flush
// @namespace   hebiohime
// @description goal of this script is to make fullcreen great again
// @include     *://www.rabb.it/*
// @version     1
// @grant       none
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at       document-end
// ==/UserScript==

document.onkeydown = function(evt) {
    if (evt.keyCode == 72) {
        var elem = document.getElementsByClassName("roomControlsLayoutView")[0];
if(elem.style.display == "block"){
    elem.style.display="none";
} else {
    elem.style.display="block";
}
}};