User:Nirinsanity/vector-2022.js

var newDiv = document.createElement('div'); newDiv.className = 'sidebar-hover-detection'; document.querySelector('.mw-page-container-inner').insertBefore(newDiv, document.querySelector('#mw-panel-toc'));