MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
$('a').each(function(){ | $('a').each(function(){ | ||
if ($(this).attr('href' | if ($(this).attr('href').indexOf("Internal") >= 0) { | ||
$(this).addClass("internal") | $(this).addClass("internal") | ||
} | } | ||
}); | }); |
Revision as of 16:12, 3 November 2017
/* Any JavaScript here will be loaded for all users on every page load. */ $('a').each(function(){ if ($(this).attr('href').indexOf("Internal") >= 0) { $(this).addClass("internal") } });