Created
September 15, 2016 23:06
-
-
Save BookOwl/3365d2ceb04e808d687d71487bff0881 to your computer and use it in GitHub Desktop.
This file contains 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
(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.run = function(code){ | |
eval(code) | |
} | |
// Block and block menu descriptions | |
var descriptor = { | |
blocks: [ | |
[‘ ‘, ‘my 1337 has js eval block’, ‘run’] | |
] | |
}; | |
// Register the extension | |
ScratchExtensions.register(‘1337 JS HAX’, descriptor, ext); | |
})({}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment