ArticleOverviewScript.js: Difference between revisions
From Mark Twain in the German Language Press
mNo edit summary |
mNo edit summary |
||
| Line 4: | Line 4: | ||
var $table = $target; | var $table = $target; | ||
console.log('loading'); | console.log('loading'); | ||
$('td.type').each( | $('td.type').each(function(index, element) { | ||
if ($(element).textContent === 'N') $(element).parentElement.style.color ='red'; | |||
}); | }); | ||
} | } | ||
}); | }); | ||
Revision as of 13:10, 11 August 2025
mw.hook( 'wikipage.content' ).add( ( $content ) => {
const $target = $content.find( '#articleOverview' );
if ( $target.length ) {
var $table = $target;
console.log('loading');
$('td.type').each(function(index, element) {
if ($(element).textContent === 'N') $(element).parentElement.style.color ='red';
});
}
});