Bonk.io Fullscreen Mode

Puts Bonk.io flash player into fullscreen. That's it!

目前为 2020-05-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Bonk.io Fullscreen Mode
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Puts Bonk.io flash player into fullscreen. That's it!
  6. // @author Balint Sotanyi
  7. // @match http://bonk.io/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. document.body.onload = function() {
  14. var f = document.getElementById('templatemo_middle').children[2].firstElementChild;
  15. if (f !== undefined) {
  16. f.style.cssText = 'position:fixed;top:0;left:0;width:100vw;height:100vh';
  17. document.body.style.overflow = 'hidden';
  18. } else {
  19. console.log('Could not reach Flash player. Try restarting the page.');
  20. }
  21. }
  22. })();