Skip to content

Instantly share code, notes, and snippets.

@gartnera
Created July 11, 2014 17:58
Show Gist options
  • Save gartnera/25e804f803db5ab7d932 to your computer and use it in GitHub Desktop.
Save gartnera/25e804f803db5ab7d932 to your computer and use it in GitHub Desktop.
function fitConsole(){
var a = document.getElementById("vmrcObject");
var b = window.getComputedStyle(a);
var c = parseInt(b.height);
var d = parseInt(b.width);
//some XSS
vmrc.setScreenSize(d,c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment