Chihuahuaspin Cheat

Allows you to change the amount of spins in chihuahuaspin.com

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Chihuahuaspin Cheat
// @namespace    https://waa.ai/spinpy
// @version      1.2
// @description  Allows you to change the amount of spins in chihuahuaspin.com
// @author       Spinfal
// @match        http://www.chihuahuaspin.com/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    
    function change(amount) {
        if (isNaN(amount)) {
            alert('that wasnt a number.');
            window.location.reload();
        } else {
            document.getElementsByTagName("img")[0].src = 'http://cdn.funnyisms.com/d3540090-1765-4633-99ff-1bb3ba7e40ec.gif';
            $(window).load(function (){
                var spins = amount;
                setInterval(function () {
                    spins = spins + 1;
                    $("#spin").text(spins + " spin" + (spins != 1 ? "s" : ""));
                    if (spins == 10)
                        $("#ethan").show();
                    else if (spins == 17)
                        $("#ethan").hide();
                }, 4205);
            });
        }
    }

    var set = prompt('amount of spins');
    if (set === null) {
        change(0);
    } else {
        change(parseInt(set));
    }

    // uwu - webhook test
    
})();