ScratchData LogoScratchData
Back to Tagme's profile

Extensions Test-2

TATagme•Created July 16, 2016
Extensions Test-2
0
0
18 views
View on Scratch

Instructions

For all you nerds out there, use this to help play around with extension blocks in Scratch 2.

Description

BEFORE USING, COPY & PASTE THE FOLLOWING INTO YOUR BROWSER CONSOLE. ================================================== (function(ext) { // Cleanup function when the extension is unloaded ext._shutdown = function() {}; // Status reporting code // Use this to report missing hardware, plugin or unsupported browser ext._getStatus = function() { return {status: 2, msg: 'Ready'}; }; ext.loadex = function(url) { ScratchExtensions.loadExternalJS(url) }; // Block and block menu descriptions var descriptor = { blocks: [ // Block type, block name, function name [' ', 'load extension from url: %s', 'loadex', ''], ] }; // Register the extension ScratchExtensions.register('Extension Loader', descriptor, ext); })({});

Project Details

Project ID116437001
CreatedJuly 16, 2016
Last ModifiedJuly 16, 2016
SharedJuly 16, 2016
Visibilityvisible
CommentsAllowed