Where is monobook.js stored in MediaWiki?

前端 未结 2 691
再見小時候
再見小時候 2020-12-06 23:30

I am trying to add extra buttons for my wiki editor page and I came across to this page:

http://en.wikipedia.org/wiki/User:MarkS/Extra_edit_buttons#Simple_Install

2条回答
  •  旧时难觅i
    2020-12-07 00:31

    The page you linked to talks about a user's monobook.js, which is a page called User:UserName/monobook.js.

    If you want to do the same for all users on your wiki, you can use the site-wide monbook.js, which is not a file, but a page called MediaWiki:monobook.js.

    Keep in mind that those scripts only apply if you're using the Monobook skin. If you want to have some script for all skins, use User:UserName/common.js or MediaWiki:common.js.

提交回复
热议问题