Max Screen

Max DF Screen Size

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name        Max Screen
// @author      hotrods20
// @namespace   MaxDFScreen
// @description Max DF Screen Size
// @match       https://fairview.deadfrontier.com/onlinezombiemmo/index.php?page=21&webplayer=1
// @version     3
// @grant       none
// ==/UserScript==

function updateTimer()
{
  var d = new Date();
  document.title = "DF | "+d.getHours() + ":" + ('0'+d.getMinutes()).slice(-2);
}

function executor()
{
  if(GetUnity() === null)
  {
    var script = document.createElement('script');
    script.src = 'http://administration.dfprofiler.com/dfscript/UnityObject.js';
    script.type = 'text/js';
    script.onload = function() {
      DFLoaderSettings();
      console.log("Loaded User Settings");
    };
    document.getElementsByTagName('head')[0].appendChild(script);
  }
  var unityInst = GetUnity();
  unityInst.setAttribute("style", "display: block; position: absolute; top: 0; bottom: 0; right: 0; left: 0; width: 100%; height: 100%;");
  document.getElementsByTagName("body")[0].setAttribute("style", "overflow-y: hidden;");
  if(document.fullscreenEnabled)
  {
    unityInst.requestFullscreen();
  }
  updateTimer();
  setInterval(updateTimer, 30000);
}

window.addEventListener("load", executor);