-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavascript.js
37 lines (34 loc) · 997 Bytes
/
javascript.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
(function (Scratch){
'use strict';
class everything {
constructor() {
}
getInfo() {
return {
color1: "#44A9FF",
color2: "#44A9FF",
"id": "everything",
"name": "javascript everything",
"description":"a very normal extension",
"blocks": [
{
"opcode":"run",
"blockType":"command",
"text":"run command [C] in javascript",
"arguments":{
"C":{
"type":"string",
"defaultValue": "alert('hello world')"
}
}
}
]
};
}
run(args){
eval(args.C)
}
}
Scratch.extensions.register(new everything());
})(Scratch);
/**/