MediaWiki:Common.js: Difference between revisions
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: →Table of contents: $(document).ready(function() { const mwPagesDiv = $('#mw-pages'); const firstDivInsideMwPages = mwPagesDiv.find('div:first'); const newElement = $('.toctitle'); newElement.css('display', ''); // Insert the new element before the first div inside #mw-pages newElement.insertBefore(firstDivInsideMwPages); });") |
No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
Revision as of 05:02, 25 August 2023
/* Any JavaScript here will be loaded for all users on every page load. */