Zoom Mods, Bloble.io , No Ads Very Useful
// ==UserScript==
// @name Bloble.io Zoom Hack
// @namespace none
// @version 1.1
// @description Zoom Mods, Bloble.io , No Ads Very Useful
// @author fb.com/Menaylex
// @match http://bloble.io/*
// @match http://www.bloble.io/*
// @grant none
// ==/UserScript==
var scroll=0;
mainCanvas["addEventListener"]?(window["addEventListener"]("mousewheel",zoom,!1),mainCanvas["addEventListener"]("DOMMouseScroll",zoom,!1)):window["attachEvent"]("onmousewheel",zoom);function zoom(a)
{
a= window["event"]|| a;a["preventDefault"]();a["stopPropagation"]();scroll= Math["max"](-1,Math["min"](1,a["wheelDelta"]|| -a["detail"]));if(scroll== -1)
{
if(maxScreenHeight< 10000)
{
(maxScreenHeight+= 250,maxScreenWidth+= 250,resize());scroll= 0
}
}
if(scroll== 1)
{
if(maxScreenHeight> 1000)
{
(maxScreenHeight-= 250,maxScreenWidth-= 250,resize());scroll= 0
}
}
}
mainCanvas["onkeydown"]= function(event)
{
var k=event["keyCode"]?event["keyCode"]:event["which"];
if(k== 70)
{
if(maxScreenHeight< 10000)
{
(maxScreenHeight+= 250,maxScreenWidth+= 250,resize())
}
}
if(k== 67)
{
if(maxScreenHeight> 1000)
{
(maxScreenHeight-= 250,maxScreenWidth-= 250,resize())
}
}
{
if(65== a|| 37== a)
{
cameraKeys["l"]= 0,updateCameraInput()
}
if(68== a|| 39== a)
{
cameraKeys["r"]= 0,updateCameraInput()
}
if(87== a|| 38== a)
{
cameraKeys["u"]= 0,updateCameraInput()
}
if(83== a|| 40== a)
{
cameraKeys["d"]= 0,updateCameraInput()
}
if(32== a)
{
var d=unitList["indexOf"](activeUnit);
sendUnit(d)
}
void(0)!= upgrInputsToIndex["k"+ a]&& toggleActiveUnit(upgrInputsToIndex["k"+ a]);46== a&& selUnits["length"]&& sellSelUnits();84== a&& toggleChat("none"== chatListWrapper["style"]["display"]);27== a&& (toggleActiveUnit(),disableSelUnit(),showSelector= !1);82== a&& (camY= camX= 0)
}
}
;mainCanvas["onkeydown"]= function(a)
{
a= a["keyCode"]?a["keyCode"]:a["which"];socket&& player&& !player["dead"]&& (65!= a&& 37!= a|| cameraKeys["l"]|| (cameraKeys["l"]= -1,cameraKeys["r"]= 0,updateCameraInput()),68!= a&& 39!= a|| cameraKeys["r"]|| (cameraKeys["r"]= 1,cameraKeys["l"]= 0,updateCameraInput()),87!= a&& 38!= a|| cameraKeys["u"]|| (cameraKeys["u"]= -1,cameraKeys["d"]= 0,updateCameraInput()),83!= a&& 40!= a|| cameraKeys["d"]|| (cameraKeys["d"]= 1,cameraKeys["u"]= 0,updateCameraInput()))
}