MediaWiki:Gadget-vector-headanchor.js: Difference between revisions

no edit summary
(Restored revision 300755 by Gifted9 (Restorer))
Tags: Undo Reverted
No edit summary
Tag: Reverted
Line 7:
// 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 ) {
$content.find( 'mw-headline' ).each( function ( i, el ) {
Line 26 ⟶ 28:
} );
} );
});