<script>
const elements = document.getElementsByClassName('collapsed-navbox-list-base');
const lists = document.getElementsByClassName('collapsed-navbox-list');
const extracters = document.getElementsByClassName('collapsed-navbox-list-extracter');
if (elements.length !== 0) {
for (let i = 0; i < elements.length; i++) {
const element = elements[i];
let styles = getComputedStyle(element);
if (styles.display == 'hidden' || styles.display == 'none' ) {
const list = lists[i];
const cloned = list.cloneNode(true);
const extracter = extracters[i];
extracter.appendChild(cloned);
element.remove();
}
}
}
</script>