rabbit flush

goal of this script is to make fullcreen great again

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

  1. // ==UserScript==
  2. // @name rabbit flush
  3. // @namespace hebiohime
  4. // @description goal of this script is to make fullcreen great again
  5. // @include *://www.rabb.it/*
  6. // @version 1
  7. // @grant none
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12. // ==UserScript==
  13. // @name rabbit flush
  14. // @namespace hebiohime
  15. // @description goal of this script is to make fullcreen great again
  16. // @include *://www.rabb.it/*
  17. // @version 1
  18. // @grant none
  19. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  20. // @run-at document-end
  21. // ==/UserScript==
  22.  
  23. document.onkeydown = function(evt) {
  24. if (evt.keyCode == 72) {
  25. var elem = document.getElementsByClassName("roomControlsLayoutView")[0];
  26. if(elem.style.display == "block"){
  27. elem.style.display="none";
  28. } else {
  29. elem.style.display="block";
  30. }
  31. }};