dawid26pl

ƬψƤ ☢ Clan

Mar 21st, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. // ==UserScript==
  2. // @name ƬψƤ Extension
  3. // @namespace Online
  4. // @version 1.0
  5. // @description Rozszerzenie dla ƬψƤ
  6. // @author dawid26pl
  7. // @match http://agar.io/
  8. // @match http://agar.io/*
  9. // @require http://pastebin.com/raw/QrMULMQV
  10. // @run-at document-start
  11. // @grant none
  12. // ==/UserScript==
  13. var allow_zoom = true;
  14. var show_grid = false;
  15. window.onload = function() {
  16. var ctx = document.getElementById("canvas").getContext("2d");
  17. $("h2").replaceWith('<h2>ƬψƤ ☢ Clan</h2>');
  18. $("title").replaceWith('<title>ƬψƤ ☢ Clan</title>');
  19. if (allow_zoom === true){
  20. window.agar.minScale = -30;
  21. }
  22. if (show_grid === false){
  23. window.agar.drawGrid = false;
  24. }
  25. window.agar.hooks.drawCellMass = function(cell, old_draw) {
  26. if(cell.size > 20) return cell;
  27. };
  28. var number = 60;
  29. var speed = 1;
  30. var feed = function(evt) {
  31. if (evt.keyCode === 87) {
  32. for (var i = 0; i < number; ++i) {
  33. setTimeout(function() {
  34. window.onkeydown({keyCode: 87});
  35. window.onkeyup({keyCode: 87});
  36. }, i * speed);
  37. }
  38. }
  39. };
  40. window.addEventListener('keydown', feed);
  41. };
Advertisement
Add Comment
Please, Sign In to add comment