ScratchSploit is a powerful tool to hack scratch games! Use this tool on your OWN RISK! Because you might get banned by scratch! (although very unlikely) Scripts in scripts folder work only with the extension installed, here is a quick guide on installing the extension.
- Download this repo in zip.
- Unpack the zip into one folder.
- Go to chrome://extensions and enable Developer mode.
- Load the folder as an unpacked extension.
canvas <HTML canvas element> -> canvas used to render over scratch
defaultWidth <number> -> default canvas width
defaultHeight <number> -> default canvas height
canvasWidth <number> -> current canvas width
canvasHeight <number> -> current canvas height
addDrawCallback(callback : function) -> returns the id of the callback
-> adds the given callback to the callback list which is then called every frame
-> callbacks are called in the order they are in in the callback list
removeDrawCallback(id : number) -> returns nothing
-> removes the callback with the given id from the callback list
frame <number> -> the current frame number (+1 every frame)
scratchToScreenPosition(x : number, y : number) -> converts a position in scratch to a position inside the canvas which is returned as an array
ctx <canvas context object> -> the return value of canvas.getContext("2d")
Hooks an element in an object with the given function
(
Object Container, <object> | Example: vm.runtime._primitives
Element Name, <string> | Example: "operator_lt"
Hook Function <function> | Example: See below
)
null
function(old) {
return function(data, sequencer) {
return old.apply(data, sequencer)
}
}
Hooks an element in an object with a proxy
(
Object Container, <object> | Example: vm.runtime._primitives
Element Name, <string> | Example: "operator_lt"
Hook Object <proxy> | Example: See below
)
null
{
apply(old, thisArg, args) {
if (args[0].VALUE == 50) {
return null
}
return Reflect.apply(old, thisArg, args)
}
}
Restores a hooked element in an object back to its original value
(
Object Container, <object> | Example: vm.runtime._primitives
Element Name, <string> | Example: "operator_lt"
)
null
Gets the value of a global variable by its name
(
Variable Name <string> | Example: Money
)
<Number> or <String> or <Array>
- Press Ctrl + Shift + I or F12.
- Press on "Console".
- Paste in your code.
- If you did all right then it should work.
f - Toggle run. t - Turn alive. y - Die.
f - Toggle noclip. q - Win.
g - Toggle superspeed. h - Toggle noclip-fly.
Mouse click - Fly. f - Change fly speed.
w - Super speed. f - Die. r - Kick player.
f - Taco BOOM.
That's all for now:) Have fun ruining other people's fun!
This README was updated by justablock and might not have controls for all games.