- If I write the Scratch Extension code here, Scrapbox’s API will give me the URL of the code itself, so I load it into sheeptester.github.io and try it out.
The Scratch code seems to be running in WebWorker, and calling window.prompt from the JS extension is undefined. :
vm Primitive rejected promise: ReferenceError: prompt is not defined
at Prompt._prompt (prompt.js:23)
at WorkerDispatch.transferCall (extension-worker.js:735)
at WorkerDispatch.call (extension-worker.js:700)
at WorkerDispatch._onMessage (extension-worker.js:879)
prompt.js
https://scrapbox.io/api/code/nishio/ScratchExtensionCode/prompt.js
Motion. from https://www.kodomonokagaku.com/wp-content/uploads/2020/11/第42回2009ジブン専用パソコン単P-1.pdf KoKa.js
https://scrapbox.io/api/code/nishio/ScratchExtensionCode/KoKa.js
This page is auto-translated from /nishio/ScratchExtensionCode using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.