Advertisement
JuanVillalbaModz14

JuanModz

Apr 11th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. window.onload = function() {
  2. var ctx = document.getElementById("canvas").getContext("2d")
  3.  
  4. //replaces title
  5. //h2 selects all h2 elements
  6. $("h2").replaceWith('<h2>Agar.ioHack</h2>');
  7.  
  8. //zoom
  9. window.agar.minScale = -30;
  10.  
  11.  
  12. //draws grid, true = yes, and false = no
  13.  
  14.  
  15. window.agar.drawGrid = false;
  16. //sets dark theme to true on extension load
  17. setDarkTheme(true);
  18. //sets show mass to true on extension load
  19. setShowMass(true);
  20.  
  21. //Cell skin
  22. image.src = 'http://i.imgur.com/GBpr1JR.png' //link
  23. window.agar.hooks.cellSkin = function(cell, old_skin) {
  24. for (i = 0; i < window.agar.myCells.length; i++) {
  25. if(cell.id == window.agar.myCells[i]) ;
  26. }
  27. }
  28.  
  29. window.agar.hooks.drawCellMass = function(cell, old_draw) {
  30. if(cell.size > 20) return cell;
  31. }
  32.  
  33. //You can just delete the return 50 if you dont like the size
  34. window.agar.hooks.cellMassTextScale = function(cell, old_scale) {
  35. return 50; //number here
  36. }
  37.  
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement