Please let me know if any other code is needed! I don't think we make any changes to toolbox.js. Thank you very much!
function getToolboxElement() {
var match = location.search.match(/toolbox=([^&]+)/);
// Default to the basic toolbox with categories and untyped variables,
// but override that if the toolbox type is set in the URL.
var toolboxSuffix = (match ? match[1] : 'categories');
// The three possible values are: "simple", "categories",
// "categories-typed-variables".
return document.getElementById('toolbox-' + toolboxSuffix);
}
function injectToolbox(container) {
var headingTag = document.createElement('H1');
var text = document.createTextNode('Toolbox');
headingTag.appendChild(text);
container.appendChild(headingTag);
var navContainer = document.createElement('div');
navContainer.setAttribute('id', 'navBar');
container.appendChild(navContainer);
navContainer.appendChild(getNavList());
}
<xml id="toolbox-categories" style="display: none">
<category name="Lyrics" categorystyle="categories">
<block type="rhyme_humpty_dumpty_sat_on_a_wall"></block>
<block type="rhyme_humpty_dumpty_great_fall"></block>
<block type="rhyme_king_hourse_man"></block>
<block type="rhyme_could_not_put_together"></block>
</category>
<category name="Commands" categorystyle="categories">
<block type="rhyme_say"></block>
<block type="for_loop_increment_with_i"></block>
<block type="controls_if"></block>
<block type="logic_compare"></block>
<block type="repeat">
<value name = "number_iterations">
<shadow type = "math_number">
<field name = "NUM">1</field>
</shadow>
</value>
</block>
<block type="new_set_variable_test_1"></block>
</category>
<category name="Variables" categorystyle="categories">
<block type="jingle_variable"></block>
<block type="variable_i"></block>
<block type="math_number"></block>
</category>
</xml>