Discuss Scratch

edward789121
Scratcher
500+ posts

how do i hack a project JSON to add JS?

i'm thinking of adding scratchX extensions to acctual scratch.if you can, please add a JS custom block

Last edited by edward789121 (Sept. 27, 2016 00:01:05)


when I receive [Scratch joined v]
cringe
wait ((pick random (0) to (4)) * ((((60) * (60)) * (12)) * (365.25))) secs
leave
wait ((pick random (0) to (4)) * ((((60) * (60)) * (12)) * (365.25))) secs
broadcast [Scratch joined v]
liam48D
Scratcher
1000+ posts

how do i hack a project JSON to add JS?

ScratchX (sbx) files have an extra field on the project.info object, savedExtensions. For example:

"savedExtensions": [{
	"extensionName": "Text to Speech",
	"javascriptURL": "http:\/\/sayamindu.github.io\/scratch-extensions\/text_to_speech_extension.js",
	"blockSpecs": [["w", "speak %s", "speak_text", "Hello!"]],
	"menus": null
}]

But I doubt that normal Scratch cares about it, so.. good luck.

202e-202e-202e-202e-202e UNI-CODE~~~~~
CodeLegend
Scratcher
500+ posts

how do i hack a project JSON to add JS?

edward789121 wrote:

i'm thinking of adding scratchX extensions to acctual scratch
This isn't supported, feasible, or allowed.
bobbybee
Scratcher
1000+ posts

how do i hack a project JSON to add JS?

There was a vulnerability that allowed this, a long time ago. Then it was patched, because it was a massive vulnerability :-)

tl;dr This is neither a good nor particularly feasible idea.

“Ooo, can I call you Señorita Bee?” ~Chibi-Matoran
Paddle2See
Scratch Team
1000+ posts

how do i hack a project JSON to add JS?

CodeLegend wrote:

edward789121 wrote:

i'm thinking of adding scratchX extensions to acctual scratch
This isn't supported, feasible, or allowed.
Right. There are good reasons why extensions are quarantined to their own site.

Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.

This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)



;

Powered by DjangoBB