Remove overseas flag from soldier pages.
 
Hide leftover Special rows.
Line 1: Line 1:
/**
/**
  * Hide leftover overseas-flag rows from imported soldier pages.
  * Hide leftover imported rows the infobox no longer shows.
* The infobox Lua no longer emits this field; some Technical record tables still do.
  */
  */
$(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();
}
}
});
});
});
});