User:Fisssion/global.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:QuickDiff/code.js',        'u:dev:MediaWiki:RevisionDelete.js',        'u:dev:MediaWiki:MultiUpload.js',        'u:dev:MediaWiki:View_Source/code.js',        'u:dev:MediaWiki:LastEdited/code.js',        'u:dev:MediaWiki:AjaxRedirect/code.js',        'u:dev:MediaWiki:Discussions Delete All/code.js',        'u:dev:MediaWiki:MassEdit/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js',    ] }); (function {	"use strict";	if (mw.config.get('wgIsArticle')) {		$("#firstHeading").append($(" ").addClass("sourceCopy").html("📋"));		$(".sourceCopy").click(function { $.ajax(location.href.replace(/\?.+/, "") + "?action=raw") .then(function(content) {				//console.log(content);				$("body").append($(" ").attr("id", "copyArea").html(content));				var copyArea = document.getElementById("copyArea");				copyArea.select;				copyArea.setSelectionRange(0, 99999);				document.execCommand("copy");				copyArea.remove;				mw.notify("Successfully copied!");			}) .catch(function {				mw.notify("AJAX request failed.");			}); });	} }); //