JavaScript
dashDoc.addEntry({
type: document.querySelector('#quick-reference') ? 'Property' : 'Guide',
name: document.title.split(' - ')[0],
})
const toc = document.querySelector('body > div > div > div:nth-child(2) > div:nth-child(3) > div:nth-child(2) > div:last-child.max-xl\\\\:hidden ul')
for (const heading of toc.querySelectorAll(':scope > li > a')) {
dashDoc.addEntry({
type: 'Section',
name: heading.textContent,
hash: heading.hash.slice(1)
})
const subheadings = heading.nextElementSibling
if (subheadings) {
for (const subheading of subheadings.querySelectorAll(':scope > li > a')) {
dashDoc.addEntry({
type: 'Section',
name: `${heading.textContent} > ${subheading.textContent}`,
hash: subheading.hash.slice(1)
})
}
}
}
CSS
/* Header */
body > div > div > div:first-child,
/* Left sidebar */
body > div > div > div:nth-child(2) > div:first-child,
body > div > div > div:nth-child(2) > div:nth-child(2),
/* Right sidebar */
body > div > div > div:nth-child(2) > div:nth-child(3) > div:nth-child(2) > div:last-child.max-xl\\:hidden,
body > div > div > div:nth-child(2) > div:nth-child(4),
/* Footer */
footer,
body > div > div > div:nth-child(2) > div:last-child {
display: none;
}
/* Full size content */
body > div > div > div:nth-child(2) {
display: block;
padding: 0;
}
body > div > div > div:nth-child(2) > div:nth-child(3) {
display: block;
}
body > div > div > div:nth-child(2) > div:nth-child(3) > div:nth-child(2) {
display: block;
max-width: initial;
}