MediaWiki:Gadget-vector-headanchor.js: Difference between revisions
Content added Content deleted
Tags: Undo Reverted |
No edit summary Tag: Reverted |
||
Line 7: | Line 7: | ||
// Revision as of 2021-01-29 |
// Revision as of 2021-01-29 |
||
// First wait for mediawiki.util to load, and the page to be ready. |
|||
mw.loader.using('mediawiki.util', function() { |
|||
mw.hook( 'wikipage.content' ).add( function ( $content ) { |
mw.hook( 'wikipage.content' ).add( function ( $content ) { |
||
$content.find( 'mw-headline' ).each( function ( i, el ) { |
$content.find( 'mw-headline' ).each( function ( i, el ) { |
||
Line 26: | Line 28: | ||
} ); |
} ); |
||
} ); |
} ); |
||
}); |