This example uses the dojo script available in 6.5, albeit it's under the xforms folders.
Made sure you extend the browsertree component and copy the associated jsp to the custom folder first.
Add the following to your browsetree.jsp:
<script language='JavaScript1.2' src='<%=Form.makeUrl(request, "/webcomponent/xforms/scripts/dojo/dojo.js")%>'></script>
Then add the following script:
<script type="text/javascript" language='JavaScript1.2' >
dojo.addOnLoad(function(){
dojo.query("div").forEach(
function(divTag) {
var id = divTag.id;
if (id.indexOf("selectrepository") != -1 ) {
divTag.style.display = "none";
}
}
);
});
</script>