-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.user.js
More file actions
32 lines (31 loc) · 921 Bytes
/
script.user.js
File metadata and controls
32 lines (31 loc) · 921 Bytes
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
// ==UserScript==
// @name i be cooking da rice
// @namespace http://tampermonkey.net/
// @version 2024-03-05
// @description try to take over the world!
// @author You
// @match https://play.freerice.com/categories/multiplication-table
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function () {
try
{
var equation = document.getElementsByClassName("card-title")[0].innerText;
var newequation = equation.replace(" x ","*");
var answer = eval(newequation);
for (let i = 0; i < 4; i++)
{
if (document.getElementsByClassName("card-button")[i].innerText === answer.toString())
{
document.getElementsByClassName("card-button")[i].click();
}
}
}
catch
{
}
}, 4000);
})();