MediaWiki:Common.js: Difference between revisions
CookingAdmin (talk | contribs) (Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { if (mw.config.get('wgUserName') === null) { $('a.new').each(function() { var text = $(this).text(); $(this).replaceWith(text); }); } });") |
(No difference)
|
Latest revision as of 17:32, 6 February 2024
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
if (mw.config.get('wgUserName') === null) {
$('a.new').each(function() {
var text = $(this).text();
$(this).replaceWith(text);
});
}
});