-
Notifications
You must be signed in to change notification settings - Fork 0
/
chihuahuaspin.user.js
43 lines (38 loc) · 1.23 KB
/
chihuahuaspin.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// ==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
})();