User:Pawnsloth/common.js

// ==UserScript== // @name Wikipedia – scroll below Timeless-skin static header on load // @description When using Wikipedia’s Timeless skin, modified with user CSS to not have a fixed header, this scrolls below that header when a page loads. This hides the distracting color bar and lets you see more of the article. If you want to see the header, just scroll back up. // @namespace roryokane.com // @match https://en.wikipedia.org/wiki/* // @grant none // @author Rory O’Kane // ==/UserScript== const headerHeight = 60; const usingTimelessSkin = => document.body.classList.contains("skin-timeless"); if (window.location.hash === "" && usingTimelessSkin) { window.scrollTo(0, headerHeight); }