rem: xulPopup.appendChild(xulScriptlet); 
add: xulPopup.insertBefore(xulScriptlet, xulSeparator); 
context: function requestedShowScriptletList(xulPopup) {    while(xulPopup.lastChild)        xulPopup.removeChild(xulPopup.lastChild);    scriptlets.forEach(        function(scriptlet) {            var xulScriptlet = document.createElement('menuitem');            try {                xulScriptlet.setAttribute('label', scriptlet.info.name);                xulScriptlet.addEventListener(                    'command', function(event) {                        if(scriptlet.enabled)                            scriptlet.disable();                        else                            scriptlet.enable();                    }, false);            } catch(e) {                xulScriptlet.setAttribute(                    'label', 'Error while reading "' +                    scriptlet.fileName + '" (click for trace)');                xulScriptlet.addEventListener(                    'command', function(event) {                        window.alert(e.name + '\n' + e.stack);                    }, false);            }            xulScriptlet.setAttribute('type', 'checkbox');            xulScriptlet.setAttribute('checked', scriptlet.enabled ? 'true' : 'false');            xulPopup.appendChild(xulScriptlet);        });}
meta: 1705	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1705/91b8d09fa818652cd0ffe70e49e9707e528394a0/sameplace.js/clean/chrome/content/sameplace.js