Dillon Gif script

Add skin changing

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name          Dillon Gif script
// @namespace    http://tampermonkey.net/
// @version      1.2.2
// @description  Add skin changing
// @author       Tinsten
// @match        http://alis.io/
// @grant        none
// ==/UserScript==
var skinChanger = false;
var i = 0
var skinSpeed = 100;
var skinList = ["http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_0_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_1_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_2_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_3_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_4_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_5_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_6_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_7_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_8_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_9_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_10_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_11_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_12_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_13_delay-0.04s.gif",
                "http://im.ezgif.com/tmp/fbad1ae443-gif-im/frame_14_delay-0.04s.gif",
                
               ];
window.addEventListener('keydown', keydown);
function keydown(e) {
        if(e.keyCode === 67 && !($("#input_box2").is(":focus"))) {
        skinChanger = !skinChanger;
        }
        if(e.keyCode === 27) {
        skinChanger = false;
        }
   }
//$('.content').append('<input style="border:1px solid grey;" placeholder="Time between skin change (milliseconds)" id="skin_change_inputSpeed" value="500" type="number" min="300"/>');

setInterval(function(){
    if(skinChanger) {
    document.getElementById('skin_url').value = skinList[i];
    i++;
    if(i === skinList.length) {i = 0;}
    setNick(document.getElementById('nick').value);
          }
    },skinSpeed);
//$('#overlays2').append('<h6 style="margin-left:500px">Agarlist Skin Changer by Tinsten</h6>')