Bonk.io Fullscreen Mode

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Bonk.io Fullscreen Mode
// @namespace    http://tampermonkey.net/
// @version      0.3.1
// @description  Puts Bonk.io flash player into fullscreen. That's it!
// @author       Balint Sotanyi
// @match        http://bonk.io/*
// @match        http://*.bonk.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    document.body.onload = function() {
        var f = document.getElementById('templatemo_middle').children[2].firstElementChild;
        if (f !== undefined) {
            f.style.cssText = 'position:fixed;top:0;left:0;width:100vw;height:100vh;';
            document.body.style.overflow = 'hidden';
        } else {
            console.log('Couldn\'t reach Flash player. Try restarting the page.');
        }
    }
})();