MediaWiki:Common.js: Difference between revisions

Content deleted Content added
Catrope (talk | contribs)
Remove VisualEditor hacks, now handled server-side: https://gerrit.wikimedia.org/r/#/c/85790/
Copying fix from vi.wiki
Line 173:
 
for ( var i = 0; i < InterwikiLinks.length; i++ ) {
ifvar (className document.getElementById(= InterwikiLinks[i].className .match(/interwiki-[-\w]+ '-fa' /) ) {;
if ( document.getElementById( className + '-fa' ) ) {
InterwikiLinks[i].className += ' FA';
InterwikiLinks[i].title = 'This is a featured article in this language.';
} else if ( document.getElementById( InterwikiLinks[i].className + '-ga' ) ) {
InterwikiLinks[i].className += ' GA';
InterwikiLinks[i].title = 'This is a good article in this language.';