User:Kaartic/vector.js

/* Author : Svetlana Tkachenko svetlana@members.fsf.org Source: https://en.wikinews.org/wiki/User:Gryllida/js/showRcAtPageEnd-0.1.js This file is a part of showRcAtPageEnd.js. Licence: GPLv3+ Version 0.1 Release 2018-06-06 Description: [beta] shows Special:RecentChanges after the footer 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 ==	var fillMyDiv = function{		api.get( { action: 'parse', disableeditsection: 'true', text: '' } ).done( function ( data ) { var $mydiv = $('#gryllida-rcattheend-div'); $mydiv.empty; $mydiv.append($(data.parse.text['*'])); });	};	// == Add the HTML at the end of current page ==	var $mydiv = $(' ',{ id: 'gryllida-rcattheend-div', style:"background-color: beige !important" });	$mydiv.click(function{fillMyDiv;});	//$mydiv.mouseenter(function{ //	fillMyDiv; //});	$('#content').append($mydiv);	fillMyDiv; });