您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
ItsVoid
当前为
- // ==UserScript==
- // @name Agar.io 10/10
- // @namespace Agar.io
- // @description ItsVoid
- // @include http://agar.io/*
- // @version 1.2
- // @grant none
- // ==/UserScript==
- // ------------------------------------------------------
- // Agar.io++, created by ItsVoid. http://iammichael.nl
- // Thanks, mikeyk730 for creating the awesome stats and charts userscript!
- // Thanks, zeach for creating this awesome game, agar.io!
- // ------------------------------------------------------
- // Configuration
- // Auto-enabled settings
- setShowMass(true); // Show your mass
- setDarkTheme(true); // Enable Dark theme by default
- setNames(true); // Show player names
- $("#nick").val("Edit userscript to change this!"); // Set username
- // ------------------------------------------------------
- // Userscript code, please do not touch unless you know what you're doing.
- // Add custom css function
- 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;
- }
- // Import Bootstrap Paper and Fontawesome using custom css function
- addStyleSheet('@import "http://bootswatch.com/paper/bootstrap.css"; @import "http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"; html * { font-family: Raleway, sans-serif; }');
- // At first time opening agar.io with this userscript, alert user.
- var alerted = localStorage.getItem('alerted') || '';
- if (alerted != 'yes') {
- alert("Make sure you have the Charts & Stats userscript installed for ingame statistics! Check the description on Greasyfork for more info.");
- localStorage.setItem('alerted','yes');
- }
- // Connect to IP & Reconnect
- $(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)");
- }
- });
- // Remove instructions text and ad-blocker image
- var elmDeleted = document.getElementById("instructions");
- elmDeleted.parentNode.removeChild(elmDeleted);
- var elmDeleted = document.getElementById("blocker");
- elmDeleted.parentNode.removeChild(elmDeleted);
- // Import Raleway font from Google Fonts
- 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);
- })();
- // ------------------------------------------------------
- // End of userscript
- // ------------------------------------------------------