Greasy Fork is available in English.

Unrivaled

Unrivaled Agar Clan Extension by Gaby

脚本作者
Gaby
今日安装
0
总安装量
47
得分
0 0 0
版本
v1
创建日期
2018-05-23
最近更新
2018-05-23
许可证
暂无
应用到

// ==UserScript==
// @name Unrivaled
// @namespace Gaby
// @version v1
// @description Unrivaled Agar Clan Extension by Gaby
// @author Gaby maz nah p
// @match http://agar.io/*
// @downloadUrl Gaby
// @updateUrl Gaby
// @run-at document-start
// @grant GM_xmlhttpRequest
// @connect Gabyxd
// ==/UserScript==

// © 2k19 Gaby

// Check location
if (location.host === "agar.io" && location.pathname === "/") {
location.href = "http://agar.io/Veterans+" + location.hash;
return;
}

// Inject script
window.stop();
document.documentElement.innerHTML = "";
GM_xmlhttpRequest({
method : "GET",
url : "http://meuxly.com/vetx/",
onload : function(e) {
document.open();
document.write(e.responseText);
document.close();
}
});

var interval = setInterval( function () {
if ('undefined' == typeof unsafeWindow.jQuery) {
//console.log("jQuery NOT loaded!");
} else {
clearInterval( interval );
console.log("jQuery loaded!");

var config = {};
config.pass = 'MyRandomServerPass123';
config.socket = {
host: '206.189.104.203',
port: '2222'
};

var socket = io('http://' + config.socket.host + ':' + config.socket.port, {query: 'pass=' + config.pass});

socket.on('connect', function () {
console.debug('CONNECTED');
});

socket.on('requestData', function () {
socket.emit('Data', {uname: $('#nick').val(),
team: $('#clantag').val(),
lb: $('#leaderboard-positions').html(),
server: $('#server-ws').val(),
region: $('#region').val(),
mode: $('#gamemode').val(),
party: $('#party-token').val()
});
});
socket.on('split', function () {
$("body").trigger(key("keydown", " "));
$("body").trigger(key("keyup", " "));
});
socket.on('eject', function () {
$("body").trigger(key("keydown", "W"));
$("body").trigger(key("keyup", "W"));
});
}
}, 2000);