mw-ui-monkey
v1.2.1
Published
A unified, simple micro-library to throw monkey wrenches into the MediaWiki UI.
Downloads
3
Readme
MW-UI-Monkey
A unified, simple micro-library to throw monkey wrenches into the MediaWiki UI.
This is essentially an easier-to-use version of mw.util.addPortletLink
.
How to Use
To insert a link at the end of the header portlet section (next to "History"), do:
const link = MwUiMonkey.addHeaderPortletLink('My special link', () => {
console.log('Meow');
});
// <- HTMLElement
Result be like: