MediaWiki:Common.js: Difference between revisions
Remove overseas flag from soldier pages. |
Hide leftover Special rows. |
||
| Line 1: | Line 1: | ||
/** | /** | ||
* Hide leftover | * Hide leftover imported rows the infobox no longer shows. | ||
*/ | */ | ||
$(function () { | $(function () { | ||
$('.infobox th, .soldier-infobox th, table.wikitable td').each(function () { | $('.infobox th, .soldier-infobox th, table.wikitable td').each(function () { | ||
var text = $(this).text().replace(/\s+/g, ' ').trim(); | var text = $(this).text().replace(/\s+/g, ' ').trim(); | ||
if (text === 'Overseas' || text === 'Over Seas Flag') { | if ( | ||
text === 'Overseas' || | |||
text === 'Over Seas Flag' || | |||
text === 'Special' | |||
) { | |||
$(this).closest('tr').remove(); | $(this).closest('tr').remove(); | ||
} | } | ||
}); | }); | ||
}); | }); | ||