Skip to content

Instantly share code, notes, and snippets.

@BookOwl
Created September 15, 2016 23:06
Show Gist options
  • Save BookOwl/3365d2ceb04e808d687d71487bff0881 to your computer and use it in GitHub Desktop.
Save BookOwl/3365d2ceb04e808d687d71487bff0881 to your computer and use it in GitHub Desktop.
(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