//basic.js
// ==UserScript==
// @name       Extension - Scratch
// @namespace  http://scratch.mit.edu
// @version    who cares?
// @description  An extension for scratch. By ipodlover3354.
// @match      *://scratch.mit.edu/projects/*
// @author ipodlover3354
// ==/UserScript==

console.log("Extension working. Made by ipodlover3354 using an example script");

new(function() {
	var ext = this;

	// 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: 'All set, 11 blocks loaded.'
		};
	};
	
	ext.color = function(color) {
		return color;
	}
	
	ext.decodeURI = function(uri) {
		return decodeURI(uri);
	}
	ext.encodeURI = function(uri) {
		return encodeURI(uri);
	}


	// Block and block menu descriptions
	var descriptor = {
		blocks: [
			// Block type, block name, function name, param1 default value, param2 default value
			['r',"return color %c",'color'],
			['r','decode URI %s','decodeURI'],
			['r','encode URI %s','encodeURI']
		],
		menus: {
			
	}};;

	// Register the extension
	ScratchExtensions.register('Color - ipodlover3354', descriptor, ext);
})();
@@ -728,16 +728,152 @@
 r;%0A%09%7D%0A%09%0A
+%09ext.hextodec = function(hex) %7B%0A%09%09return parseInt(hexString, 16);%09%0A%09%7D%0A%09%0A%09ext.dectohex = function(dec) %7B%0A%09%09return dec.toString(16);%0A%09%7D%0A%09%0A
 %09ext.dec
@@ -889,32 +889,32 @@
 function(uri) %7B%0A
-
 %09%09return decodeU
@@ -1178,24 +1178,113 @@
 %22,'color'%5D,%0A
+%09%09%09%5B'r', %22hex to dec %25s%22, 'hextodec',%22000%22%5D,%0A%09%09%09%5B'r', %22dec to hex %25n%22, 'dectohex',%2215%22%5D,%0A
 %09%09%09%5B'r','dec
@@ -1475,9 +1475,10 @@
 t);%0A
-
 %7D)();
+%0A

Update color.js