Greasy Fork is available in English.

Slither.io skin rotator

Skin rotator for slither.io

< Părere la script-ul Slither.io skin rotator

Întrebare/comentariu

NotYouMod
§
Postat în: 29-05-2022

Change code to beautified:

// ==UserScript==
// @name         Slither.io skin rotator
// @version      1.0
// @description  Skin rotator for slither.io
// @author       X_ank RBLX
// @match        http://slither.io/
// @grant        none
// @namespace https://greasyfork.org/users/142534
// ==/UserScript==

(function() {
    'use strict';

    var loopTheLoop = true;
    var nextSkin = 0;
    var theLoop = setInterval(function() {
        if (loopTheLoop) {
            if (nextSkin > 25) nextSkin = 0;
            if (snake !== null) setSkin(snake, nextSkin);
            nextSkin++;
        } else {
            clearInterval(theLoop);
        }
    }, 400);
})();

Or else I'm going to report for minified code.

Postează un raspuns

Autentifică-te pentru a posta un răspuns.