User:Gryllida/js/showToDoAtPageEnd-0.1.js

/* Author : Svetlana Tkachenko svetlana@members.fsf.org This file is a part of showToDoAtPageEnd-0.1.js Licence: GPLv3+ Version 0.1 Release 2018-11-25 Description: [beta] shows contents of Category:Developed or disputed 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: `June 29, 2024  category=Developing or disputed notcategory=Review namespace=Main suppresserrors=false ordermethod=categoryadd addfirstcategorydate = true ` } ).done( function ( data ) { var $mydiv = $('#gryllida-todoattheend-div'); $mydiv.empty; $mydiv.append($(data.parse.text['*'])); });	};	// == Add the HTML at the end of current page ==	var $mydiv = $(' ',{ id: 'gryllida-todoattheend-div', style:"background-color: #dedede !important" });	$mydiv.click(function{fillMyDiv;});	//$mydiv.mouseenter(function{ //	fillMyDiv; //});	$('#mw-related-navigation').append($mydiv);	fillMyDiv; }); //