User:Lenni009/global.js

/* Scrolling functions */ $(function{	$("html").css("scroll-behavior", "smooth");	/* Add button to scroll back to top when sticky header is visible */	$("#WikiaBar").before(" ↑ ");	$(".nms-back-to-top").click(function{ document.getElementsByClassName("community-header-wrapper")[0].scrollIntoView; });	/* Add link to scroll to categories section in bottom-right toolbar */	$("#WikiaBar .tools li:last-of-type").before("Categories"); }); function scrollToCats{ $(".page-footer__categories.wds-is-collapsed .wds-collapsible-panel__header").click; document.getElementsByClassName("page-footer")[0].scrollIntoView; }