User:Gryllida/js/showMyNotice.js

/* Author : Svetlana Tkachenko svetlana@members.fsf.org This file is a part of showMyNotice.js. Licence: GPLv3+ Description: [beta] shows Special:MyPage/MyNotice in the personal menu area See also . mw.loader.using(['mediawiki.api'], function {	"use strict";	// == Create an API object ==	var api = new mw.Api;	// == Query the wiki API to get HTML of ==	api.get( { action: 'parse', disableeditsection: 'true', text: '' } ).done( function ( data ) { // == Add the HTML at the end of current page == $('#p-personal').append(data.parse.text['*']); }); });