ItsVoid
目前為
// ==UserScript==
// @name Agar.io 10/10
// @namespace Agar.io
// @description ItsVoid
// @include http://agar.io/*
// @version 2
// @grant none
// ==/UserScript==
function addStyleSheet(style){
var getHead = document.getElementsByTagName("HEAD")[0];
var cssNode = window.document.createElement( 'style' );
var elementStyle= getHead.appendChild(cssNode)
elementStyle.innerHTML = style;
return elementStyle;
}
addStyleSheet('@import "http://bootswatch.com/paper/bootstrap.css"; @import "http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css";');
$(document).ready(function() {
var region = $("#region");
if (region.length) {
$("<br/><div class=\"input-group\"><div class=\"form-group\"><input id=\"serverInput\" class=\"form-control\" placeholder=\"255.255.255.255:443\" maxlength=\"20\"><span class=\"input-group-btn\"> &<button disabled id=\"connectBtn\" class=\"btn-needs-server btn btn-warning\" style=\"width: 80px\" onclick=\"connect('ws://' + $('#serverInput').val());\" type=\"button\">Join</button><button disabled id=\"connectBtn\" class=\"btn-needs-server btn btn-info\" style=\"width: 80px\" onclick=\"connect('ws://' + $('#serverInput').val());\" type=\"button\"><span class=\"fa fa-lg fa-refresh\"></span></button> </input></div>").insertAfter("#helloDialog > form > div:nth-child(3)");
}
});
var elmDeleted = document.getElementById("instructions");
elmDeleted.parentNode.removeChild(elmDeleted);
var elmDeleted = document.getElementById("blocker");
elmDeleted.parentNode.removeChild(elmDeleted);
setShowMass(true);
setDarkTheme(true);
setNames(true);
$("#nick").val("Username here!");
WebFontConfig = {
google: { families: [ 'Raleway::latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})();
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('html * { font-family: Raleway, sans-serif; }');