ArticleOverviewScript.js: Difference between revisions
From Mark Twain in the German Language Press
mNo edit summary |
mNo edit summary |
||
| (26 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
const $target = $content.find( '#articleOverview' ); | const $target = $content.find( '#articleOverview' ); | ||
if ( $target.length ) { | if ( $target.length ) { | ||
$('.type').each(function(index) { | |||
var tdContent = $(this).text(); | |||
if (tdContent === 'N\n') { | |||
$(this).addClass('n'); | |||
if ( | } | ||
}); | |||
} | } | ||
}); | }); | ||
Latest revision as of 14:23, 11 August 2025
mw.hook( 'wikipage.content' ).add( ( $content ) => {
const $target = $content.find( '#articleOverview' );
if ( $target.length ) {
$('.type').each(function(index) {
var tdContent = $(this).text();
if (tdContent === 'N\n') {
$(this).addClass('n');
}
});
}
});