Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name ƬψƤ Extension
- // @namespace Online
- // @version 1.0
- // @description Rozszerzenie dla ƬψƤ
- // @author dawid26pl
- // @match http://agar.io/
- // @match http://agar.io/*
- // @require http://pastebin.com/raw/QrMULMQV
- // @run-at document-start
- // @grant none
- // ==/UserScript==
- var allow_zoom = true;
- var show_grid = false;
- window.onload = function() {
- var ctx = document.getElementById("canvas").getContext("2d");
- $("h2").replaceWith('<h2>ƬψƤ ☢ Clan</h2>');
- $("title").replaceWith('<title>ƬψƤ ☢ Clan</title>');
- if (allow_zoom === true){
- window.agar.minScale = -30;
- }
- if (show_grid === false){
- window.agar.drawGrid = false;
- }
- window.agar.hooks.drawCellMass = function(cell, old_draw) {
- if(cell.size > 20) return cell;
- };
- var number = 60;
- var speed = 1;
- var feed = function(evt) {
- if (evt.keyCode === 87) {
- for (var i = 0; i < number; ++i) {
- setTimeout(function() {
- window.onkeydown({keyCode: 87});
- window.onkeyup({keyCode: 87});
- }, i * speed);
- }
- }
- };
- window.addEventListener('keydown', feed);
- };
Advertisement
Add Comment
Please, Sign In to add comment