diff --git a/extensions/obviousAlexC/SensingPlus.js b/extensions/obviousAlexC/SensingPlus.js index f8ace8ca6f..0cf92b63eb 100644 --- a/extensions/obviousAlexC/SensingPlus.js +++ b/extensions/obviousAlexC/SensingPlus.js @@ -129,58 +129,6 @@ } }; - if (!Scratch) { - Scratch = { - TargetType: { - SPRITE: "sprite", - STAGE: "stage", - }, - BlockType: { - COMMAND: "command", - REPORTER: "reporter", - BOOLEAN: "Boolean", - HAT: "hat", - }, - ArgumentType: { - STRING: "string", - NUMBER: "number", - COLOR: "color", - ANGLE: "angle", - BOOLEAN: "Boolean", - MATRIX: "matrix", - NOTE: "note", - }, - Cast: { - toNumber: (input) => { - return Number(input); - }, - - toString: (input) => { - return String(input); - }, - - toBoolean: (input) => { - return Boolean(input); - }, - }, - vm: window.vm, - extensions: { - unsandboxed: true, - register: (object) => { - const serviceName = - vm.extensionManager._registerInternalExtension(object); - vm.extensionManager._loadedExtensions.set( - object.getInfo().id, - serviceName - ); - }, - }, - }; - if (!Scratch.vm) { - throw new Error("The VM does not exist"); - } - } - const isPackaged = Scratch.vm.runtime.isPackaged; const vm = Scratch.vm; diff --git a/extensions/obviousAlexC/newgroundsIO.js b/extensions/obviousAlexC/newgroundsIO.js index 4dabac4c20..8696825fb0 100644 --- a/extensions/obviousAlexC/newgroundsIO.js +++ b/extensions/obviousAlexC/newgroundsIO.js @@ -9030,40 +9030,6 @@ let menuIco = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAABuCAYAAADGWyb7AAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACHDwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKL2lDQ1BJQ0MgUHJvZmlsZQAASMedlndUVNcWh8+9d3qhzTACUobeu8AA0nuTXkVhmBlgKAMOMzSxIaICEUVEmiJIUMSA0VAkVkSxEBRUsAckCCgxGEVULG9G1ouurLz38vL746xv7bP3ufvsvc9aFwCSpy+XlwZLAZDKE/CDPJzpEZFRdO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dccIF/+umnvSSVY+8UclZdlhF6CP8I9mAHHXSQl/G2B0LF1K9fn3juTWFrIVcJe9Zniy22+Lt58+b+22+/NUlCgn777Tcvp8PLCfGbb765aZG5c+fa88kBs8l52WWX+fLly/s999zTv/DCC36//fZjLJ4TkOCcIoLsXYQ6wi3CIsEYV6pUKVOT999/v7/kkkt8uXLl3tD71YVcnX37CiO22mqrFVdeeaVftGiRMQWaMmWKHzt2rDFn11139a1atfI//fSTMfXHH3/0d999tzFp7733NscMGwdTq1atylgMEnKKcTDtQuET4U/NwlWKb0zv63UUgT0QpgsthW2EXCMkbZQm16o777zT//333xGWrZGmxx57zN9zzz1+8eLFvkGDBr5///7mbA0ZMsTXqVPHy1v23bp187NmzfIKfewz7N7OO+/Mc98j5NRkrSR8LhizrrrqKj9mzBjfpEkTUyW8H0aZMmV8hQoVluizF/R6fyFXiEG9onTp0v/17NnT7FRAqHicrMqVK5vDhbocNGiQP/roo+05sYEwFE8TPPPMM75du3b+ySef9A888ADjQABOliWniGB6uWCMgXEYcVQH6qJSpUrGQCQOpl188cV+8uTJvkaNGmROXhFyQfJIGpwufK3A2v/888/GMJ7js88+82effbZX/BadeDDxn3/+8UjlHnvs4bt27ervuOMOf9JJJ9nzbrPNNuZ1fvDBBxYy6LxpAhM8Z4j83EAhKlEnnHCCGXEI15kZOHDgQAsJXnnlFf/777+bGjnxxBM5HieGAVufVFHoJW3xu+ya79ixozEMxjz11FNms0Jq3lCxYkVTj6jSUaNGma077LDDzBHDw0TSUJFnnHEGWoik8wVCzqnJmUL0odDzCxcuNMYlIoLTc889NzjnJQFvdF0TOce6wttiWAGDj4a4+eabzbVHYrDV+jwudtxxRzseiWQy4qTMnz/fQgUmaK1atQgVmJi3CVsKOUVHC38I0QdCdXz//fcRFq0hvC68s3fffdf369fPd+/e3R4scs5PAhn28gIPiLOTbSLd1lmStIB47JFHHjFHYvjw4Wa3mHyxzlU8cAzepUIcT9jQuHFjkgswnJDnG+ESgXgw56iZQCnDHkTemKn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xgzyAS4xHjEYTomCjaXIXZiRYzUiC32I6sidWmfEw6wBzLuMdKKNBIGkO8MKuBkOWgCSiWtFSauSaUdqWVww/eVKXBdKuhMxmSEFkBTMGaEOJI6JO1dgQ1rsk5I3SnCz4g8G1fTaQVYfB+uBATgPX6NkMIngLmxs58qNDUpPmcCsNE1ATuDwqJ3ZisSDuNSAXEay59Qt9kMsgNJQ7L5znj3EoDP2dyUiaxJW6Dz2WmJDvCMUmHLWpjwcdnmiIUIKf3Uo+xbdLM0PEq8yFiioYi4BmcHjxUHh/9x+ekI0yBFjiyaVq5cad9DiBHrrWaS8GrZhY+eyKLuj/vgnqSd/tH/FEhJIv9sH2aQiholmMcuQR0EfpUj5349MEeJjWfwHtmcLSuubarTm0AObyhrixc3MkLVBKWxPOUpT3nKU57ylKc85SlPecpTnvKUpzzlKU95ylOecomc+x/Y4lekcFolLwAAAABJRU5ErkJggg=="; - if (!Scratch) { - Scratch = { - BlockType: { - COMMAND: "command", - REPORTER: "reporter", - BOOLEAN: "Boolean", - HAT: "hat", - }, - ArgumentType: { - STRING: "string", - NUMBER: "number", - COLOR: "color", - ANGLE: "angle", - BOOLEAN: "Boolean", - MATRIX: "matrix", - NOTE: "note", - }, - vm: window.vm, - extensions: { - unsandboxed: true, - register: (object) => { - const serviceName = - vm.extensionManager._registerInternalExtension(object); - vm.extensionManager._loadedExtensions.set( - object.getInfo().id, - serviceName - ); - }, - }, - }; - if (!Scratch.vm) { - throw new Error("The VM does not exist"); - } - } const vm = Scratch.vm; const runtime = vm.runtime; diff --git a/extensions/penplus.js b/extensions/penplus.js index 2da667498c..fb11d2de3c 100644 --- a/extensions/penplus.js +++ b/extensions/penplus.js @@ -26,49 +26,6 @@ Other various small fixes (function (Scratch) { "use strict"; - // This is for compatibility with plugin loaders that don't implement window.Scratch. - // This is a one-time exception. Similar code like this WILL NOT be accepted in new extensions without - // significant justification. - if (!Scratch) { - Scratch = { - // @ts-expect-error - BlockType: { - COMMAND: "command", - REPORTER: "reporter", - BOOLEAN: "Boolean", - HAT: "hat", - }, - // @ts-expect-error - ArgumentType: { - STRING: "string", - NUMBER: "number", - COLOR: "color", - ANGLE: "angle", - BOOLEAN: "Boolean", - MATRIX: "matrix", - NOTE: "note", - }, - // @ts-expect-error - vm: window.vm, - extensions: { - unsandboxed: true, - register: (object) => { - // @ts-expect-error - const serviceName = - vm.extensionManager._registerInternalExtension(object); - // @ts-expect-error - vm.extensionManager._loadedExtensions.set( - object.getInfo().id, - serviceName - ); - }, - }, - }; - if (!Scratch.vm) { - throw new Error("The VM does not exist"); - } - } - if (!Scratch.extensions.unsandboxed) { throw new Error("Pen+ must be run unsandboxed"); }