One thing that annoys me about node.js API documentation is that the table of contents is in the top, so when clicking a method I have to go back to the top to scan for alternative methods.With this userscript, the table of contents is moved into a sidebar so it is easy to scan for methods.```csscolumn1.interior {margin-left: 540px; }toc {position: fixed; overflow-y: scroll; overflow-x: hidden; top: 15px; bottom: 0; width: 340px; margin-left: -350px; padding-left: 20px; padding-right: 10px; font-size: 13px; }toc h2 {display: none; }toc ul {margin-left: 1rem; }toc ul li {margin-bottom: 0.5rem; }apicontent {padding-top: 0; } ```
Submitted August 01, 2019 at 05:34AM by char101
No comments:
Post a Comment