JuanVillalbaModz14

Untitled

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