User:Spacemarine22/vector.js

// This expands/collapses the Vector 2022 TOC via a text button: // "Expand all/Collapse all" // Great for long pages and articles with multi-level TOCs. For example: // https://en.wikipedia.org/wiki/Help:Table or most U.S. president articles. // https://phabricator.wikimedia.org/T302426 // From Village Pump discussion: // https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Button_to_expand_table_of_contents_in_Vector_2022 // Search for "Button to expand table of contents in Vector 2022" when archived. importScript('User:The wub/tocExpandAll.js');