Skip to content

Instantly share code, notes, and snippets.

@Termplexed
Termplexed / nodedoc-collapse.js
Created April 20, 2021 18:29
Option to collapse TOC items on nodejs.org
((s) => {
s = document.createElement('style');
s.textContent = `
li[data-open="0"] ul {
display:none;
}
li[data-open="0"] {
filter:brightness(0.7) hue-rotate(45deg);
font-weight: 700;
list-style-type: disc!important;