User:Devilify65536/global.js

(function($, mw){	"use strict";	var config = mw.config.get([ 'wgUserLanguage', 'wgPageName', 'wgAction' ]);	window.RevisionEditLinks = window.RevisionEditLinks || {};	function putEditLinks{		new mw.Api.get({ "action": "query", "format": "json", "meta": "allmessages", "ammessages": "editold", "amlang": config.wgUserLanguage }).then (function(data){ var editlabel = data.query.allmessages[0]["*"]; $(".mw-contributions-list > li").queue(function{				var pgname = $(this).find('.mw-contributions-title').length?$(this).find('.mw-contributions-title').text:config.wgPageName;				if ($(this).find('.mw-changeslist-links:not(.mw-usertoollinks, .mw-history-histlinks)').length)$(this).find('.mw-changeslist-links:not(.mw-usertoollinks, .mw-history-histlinks)').append(' ' + (config.wgAction = "history"?' ':) + '' + editlabel + '' + (config.wgAction = "history"?' ':'') + ' ');				else $(this).find('.mw-tag-markers').before(' ' + editlabel + '  ');			});		});	}

mw.loader.using([       'mediawiki.api',        'mediawiki.user',        'mediawiki.util',        'mediawiki.notification'    ], putEditLinks); })(jQuery, mediaWiki);