MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 294: Line 294:


function matchHeaderText() {
function matchHeaderText() {
     $('table[cellpadding="5"][border="1"][style] tr[style]:not(.dungeon-page-fields tr), table[cellpadding="5"][border="1"][style] tr[class]:not(.dungeon-page-fields tr), .instance-page .segment-header, .auto-header-color .segment-header, .alt-langs th, .updates-table th, table[cellpadding="5"][border="1"][class*="colortable-"] th').each(function () {
     $('table[cellpadding="5"][border="1"][style] tr[style]:not(.dungeon-page-fields tr), table[cellpadding="5"][border="1"][style] tr[class]:not(.dungeon-page-fields tr), .instance-page .segment-header, .auto-header-color .segment-header, .alt-langs th, .updates-table th, table[cellpadding="5"][border="1"][class*="colortable-"] th, .auto-text-color .segment-header').each(function () {
         var rgb = $(this).css('backgroundColor');
         var rgb = $(this).css('backgroundColor');
         var colors = rgb.match(/\d+/g);
         var colors = rgb.match(/\d+/g);