MediaWiki Category Tree expand all by default

2019-07-25 02:57发布

问题:

Im using the Category Tree extension for MediaWiki which allows you to create a nice tree view of all categories.

By default when you visit a page with a category tree you have to expand a category manually by clicking the toggle symbol.

Is there a way to expand all categories by default? Where do i have to make changes in code?

回答1:

Mediawiki has Jquery by default so you can just click with Jquery:

$('.CategoryTreeToggle').click();