Max Screen

Max DF Screen Size

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==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);