More actions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
addOnloadHook( AppendCategoryTreeToSidebar ); | addOnloadHook( AppendCategoryTreeToSidebar ); | ||
mw.hook( 'wikipage. | mw.hook( 'wikipage.categories' ).add( function ( $content ) { | ||
console.log("wikipage. | console.log("wikipage.categories"); | ||
}); | }); |
Revision as of 10:07, 30 October 2024
/* Any JavaScript here will be loaded for all users on every page load. */
function AppendCategoryTreeToSidebar() {
console.log("AppendCategoryTreeToSidebar");
}
addOnloadHook( AppendCategoryTreeToSidebar );
mw.hook( 'wikipage.categories' ).add( function ( $content ) {
console.log("wikipage.categories");
});