User:Nicodene/vector-2022.js

mw.hook('wikipage.content').add(function {   var collapseButton = document.getElementsByClassName('vector-toc-collapse-button')[0];    collapseButton.click; });