问题
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();
来源:https://stackoverflow.com/questions/37348060/mediawiki-category-tree-expand-all-by-default