Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.js: Difference between revisions

MediaWiki interface page
Created page with "All JavaScript here will be loaded for users of the Citizen skin: // Force sections with certain IDs to be collapsed by default on desktop $(document).ready(function() { if (window.innerWidth >= 768) { // Only on desktop const idsToCollapse = ['Misc', 'Anti-ban', 'GFishing']; // section IDs idsToCollapse.forEach(function(id) { var header = document.getElementById(id); if (header) { var section = header.closest('.citizen-section-headin..."
 
No edit summary
Line 4: Line 4:
$(document).ready(function() {
$(document).ready(function() {
   if (window.innerWidth >= 768) { // Only on desktop
   if (window.innerWidth >= 768) { // Only on desktop
     const idsToCollapse = ['Misc', 'Anti-ban', 'GFishing']; // section IDs
     const idsToCollapse = ['Muling', 'Misc', 'Anti-ban', 'Anti-PK' 'Trip Settings', 'Skills Settings', 'Equipment']; // section IDs


     idsToCollapse.forEach(function(id) {
     idsToCollapse.forEach(function(id) {