MediaWiki:Common.js/BackToTop.js

/* Adds "Back to Top" link to headings on Timeline * By: User:KettleMeetPot */ $(function {   if (wgPageName == 'Timeline' && wgAction !== "edit") {        $("#WikiaPage h2").append(' &uarr;Back to Top ');        $("[id*='Team_Year_'], #2043, #2056").next.after(' &uarr;Back to Top ');        $(".back-to-top").click(function { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; });   } });