Created
December 2, 2016 17:12
-
-
Save catalyst518/f8c9a854c258974f05cdf99a875bfce1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Kongregate Larger Game Size | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description Maximize the viewport | |
// @author Some Ball -1, Catalyst | |
// @include http://www.kongregate.com/games/koalabeast/tagpro* | |
// @grant none | |
// ==/UserScript== | |
function wait() { | |
if(!window.GameIframe || !window.GameIframe.prototype.setSizeToMaxForWindow) return setTimeout(wait); | |
let width = window.innerWidth; | |
let height = window.innerHeight; | |
var sstmfw = window.GameIframe.prototype.setSizeToMaxForWindow | |
window.GameIframe.prototype.setSizeToMaxForWindow = function() { | |
this.config.max_game_width = width; | |
this.config.max_game_height = height; | |
return sstmfw.apply(this,arguments); | |
} | |
} | |
wait(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment