MediaWiki Category Tree expand all by default

2019-07-25 02:32发布

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条回答
劳资没心,怎么记你
2楼-- · 2019-07-25 03:02

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

$('.CategoryTreeToggle').click();
查看更多
登录 后发表回答