This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Story Weaver 2.0 — ExtForge-style Story Engine | |
| */ | |
| (async function (Scratch) { | |
| if (!Scratch.extensions.unsandboxed) { | |
| alert("This extension needs to be unsandboxed to run!"); | |
| return; | |
| } | |
| const ExtForge = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyExtension { | |
| getInfo() { | |
| return { | |
| id: "myExtension", | |
| name: "My Extension", | |
| blocks: [ | |
| { | |
| opcode: "hello", | |
| blockType: Scratch.BlockType.REPORTER, | |
| text: "say hello" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Story Weaver Extension - GitHub-ready version */ | |
| (async function(Scratch) { | |
| // Check if the extension can run unsandboxed | |
| if (!Scratch.extensions.unsandboxed) { | |
| alert("This extension needs to be unsandboxed to run!"); | |
| return; | |
| } | |
| const ExtForge = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Created with ExtForge https://jwklong.github.io/extforge */ | |
| (async function(Scratch) { | |
| const variables = {}; | |
| if (!Scratch.extensions.unsandboxed) { | |
| alert("This extension needs to be unsandboxed to run!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Story Weaver extension (for PenguinMod extra extensions) | |
| - Adds localStorage persistence | |
| - Safer removal behavior (removes all occurrences) | |
| - Optional alerts (showAlerts = false by default) | |
| - Preserves original block opcodes/IDs | |
| */ | |
| (async function (Scratch) { | |
| // Configuration | |
| const STORAGE_KEY = "story-weaver:v1"; | |
| const showAlerts = false; // set true to keep alert() behavior, false uses console.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* story-weaver-extension.js | |
| Story Weaver extension (for PenguinMod extra extensions) | |
| - Adds localStorage persistence | |
| - Safer removal behavior (removes all occurrences) | |
| - Optional alerts (showAlerts = false by default) | |
| - Preserves original block opcodes/IDs | |
| */ | |
| (async function (Scratch) { | |
| // Configuration | |
| const STORAGE_KEY = "story-weaver:v1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Created with ExtForge https://jwklong.github.io/extforge */ | |
| (async function(Scratch) { | |
| const variables = {}; | |
| if (!Scratch.extensions.unsandboxed) { | |
| alert("This extension needs to be unsandboxed to run!") | |
| return | |
| } | |
| const ExtForge = { | |
| Broadcasts: new function() { | |
| this.raw = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Created with ExtForge https://jwklong.github.io/extforge */ | |
| (async function(Scratch) { | |
| const variables = {}; | |
| if (!Scratch.extensions.unsandboxed) { | |
| alert("This extension needs to be unsandboxed to run!") | |
| return | |
| } | |
| const ExtForge = { | |
| Broadcasts: new function() { | |
| this.raw = {}; |