MediaWiki:Common.js: Difference between revisions
Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function () { $('#ca-viewsource').hide(); }); $(document).ready(function() { if (mw.config.get("wgAction") === "edit" || mw.config.get("wgAction") === "submit") { var userGroups = mw.config.get('wgUserGroups'); // Only tag regular 'user' edits, not sysop or approver if (userGroups.includes('user') && !userGroups.includes('approver') && !userGroups.includes('s..." |
No edit summary Tag: Reverted |
||
Line 16: | Line 16: | ||
} | } | ||
} | } | ||
} | |||
}); | |||
$(document).ready(function () { | |||
if ($('#p-logo').length && !$('#wiki-tagline').length) { | |||
$('<div id="wiki-tagline">The Free Encyclopedia</div>').insertAfter('#p-logo'); | |||
} | } | ||
}); | }); |