Bonk.io Fullscreen Mode

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

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