Greasy Fork

Shined up real nice.

Greasy Fork is available in English.

Splix.io Mods,Hacks,Cheats

Splix.io extension (no ads,zoom,play with friends,stop player)

Publicidade
Autor
Enzo
Instalações hoje
0
Total de instalações
103
Avaliações
0 0 0
Versão
2.0
Criado
Atualizado
Licença
N/A
Aplicável a

Descrição do Autor

// ==UserScript==
// @name Splix.io Mods,Hacks,Cheats
// @description Splix.io extension (no ads,zoom,play with friends,stop player)
// @version 2.0
// @author Slithere.com
// @match http://splix.io
// @run-at document-start
// @grant GM_xmlhttpRequest
// @connect splix.io
// @website https://slithere.com
// @namespace https://greasyfork.org/users/57018
// ==/UserScript==

(function() {

window.addEventListener("load", function(){

var game = {};

setTimeout(function(){

MAX_ZOOM = 10000;
//BLOCKS_ON_SCREEN = 10000;
USERNAME_SIZE = 6;
}, 2000);



var mouseWheelEvt= ((/Firefox/i.test(navigator.userAgent))? "DOMMouseScroll" : "mousewheel");

document.body.addEventListener(mouseWheelEvt, WheelHandler, true);

function WheelHandler(event) {
var zoom = BLOCKS_ON_SCREEN * Math.pow(0.93, event.wheelDelta / 120 || -event.detail || 0);
if(zoom < 100) BLOCKS_ON_SCREEN = 100;
else if(zoom > 16000) BLOCKS_ON_SCREEN = 16000;
else BLOCKS_ON_SCREEN = zoom;
}


var leaderboard = document.getElementById("leaderboard");
leaderboard.style.top = "48px";
var myCssText = "color:white; font-weight: 700; position:fixed; right: 13px; top: 8px; z-index:100; padding: 5px 10px; opacity: .7; transform-orign: right top;";

var myDiv = document.createElement("div");
myDiv.className = "greenBox";
myDiv.style.cssText = myCssText;
myDiv.innerHTML = "BY------>CreeHack.net";


leaderboard.parentNode.insertBefore(myDiv, leaderboard.nextSibling);

uiElems.push(myDiv);


var paused = false;
var loop = setInterval(function(){
if(paused) {
sendDir((myPlayer.dir + 1)%4);
}
}, 100);

window.addEventListener("keyup", function(e){
if(e.keyCode == 81) paused ^= true;
});

var nameForm = document.getElementById("nameForm");
var myBox = document.createElement("div");
var br = document.createElement("br");


nameForm.insertAdjacentHTML("beforeEnd", "
Loading...");


var interval;

var hashes = [];

window.searchServersRecursive = function(obj, ping){
if(obj && obj.hash) {
hashes.push({hash: obj.hash, ping: ping});
return;
}
if(Array.isArray(obj)) for(var i=0; i 0 && no0()) {
clearInterval(interval);
var no = 1 ;
var options = "Select";

for(var i=0; i"+(no++)+". #" + hashes[i].hash + " ( " + hashes[i].ping + " )";

document.getElementById("_servers").innerHTML = options;
if(window.location.hash.indexOf("#") != -1) document.getElementById("_servers").value = window.location.hash;
}

},100);

var myStyle = (function() {
var style = document.createElement("style");
style.appendChild(document.createTextNode(""));
document.head.appendChild(style);
return style;
})();

var cssRules = document.styleSheets[0]["cssRules"];
for(var i=0; i