Skip to main content

JavaScript

This extension allows the project to run custom JavaScript code with permission from the user and other JS-related commands.

Check it out at https://cattymod.app/extensions/

All blocks included are:

eval (command)

Run a custom JavaScript command with a prompt to the user to ask if they are sure they want it to run.

(eval (command))

Run a custom JavaScript command with a prompt to the user to ask if they are sure they want it to run and also output the value it responds with.

JavaScript type of (text)

Get the type of a JavaScript value. That includes string, number, boolean, etc.

console log (text), console warn (text) and console error (text)

Write text in the JavaScript console with different styles.

(JavaScript global (text))

Get the value of a JavaScript global.

(property (text) of global (text))

Get a value from a JavaScript Global

(current JavaScript time)

Get how many milliseconds it has been since January 1st, 1970 UTC.

(JavaScript random)

Get a random number from the JavaScript random number value.