Dillon Gif script

Add skin changing

  1. // ==UserScript==
  2. // @name Dillon Gif script
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.2.2
  5. // @description Add skin changing
  6. // @author Tinsten
  7. // @match http://alis.io/
  8. // @grant none
  9. // ==/UserScript==
  10. var skinChanger = false;
  11. var i = 0
  12. var skinSpeed = 100;
  13. var skinList = ["http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_0_delay-0.04s.gif",
  14. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_1_delay-0.04s.gif",
  15. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_2_delay-0.04s.gif",
  16. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_3_delay-0.04s.gif",
  17. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_4_delay-0.04s.gif",
  18. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_5_delay-0.04s.gif",
  19. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_6_delay-0.04s.gif",
  20. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_7_delay-0.04s.gif",
  21. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_8_delay-0.04s.gif",
  22. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_9_delay-0.04s.gif",
  23. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_10_delay-0.04s.gif",
  24. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_11_delay-0.04s.gif",
  25. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_12_delay-0.04s.gif",
  26. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_13_delay-0.04s.gif",
  27. "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_14_delay-0.04s.gif",
  28. ];
  29. window.addEventListener('keydown', keydown);
  30. function keydown(e) {
  31. if(e.keyCode === 67 && !($("#input_box2").is(":focus"))) {
  32. skinChanger = !skinChanger;
  33. }
  34. if(e.keyCode === 27) {
  35. skinChanger = false;
  36. }
  37. }
  38. //$('.content').append('<input style="border:1px solid grey;" placeholder="Time between skin change (milliseconds)" id="skin_change_inputSpeed" value="500" type="number" min="300"/>');
  39.  
  40. setInterval(function(){
  41. if(skinChanger) {
  42. document.getElementById('skin_url').value = skinList[i];
  43. i++;
  44. if(i === skinList.length) {i = 0;}
  45. setNick(document.getElementById('nick').value);
  46. }
  47. },skinSpeed);
  48. //$('#overlays2').append('<h6 style="margin-left:500px">Agarlist Skin Changer by Tinsten</h6>')