User:MonkeysHK/common.js

// stick debug console right after ace editor function toggleEditOptions { $("#mw-content-text .editOptions").toggle; }

var timer = setInterval(function{	if (mw.config.get("wgCanonicalNamespace") == "Module") {		$("#editpage-copywarn, #mw-content-text .editButtons, #mw-scribunto-console .mw-scribunto-message").hide;		$("#mw-content-text .templatesUsed").insertAfter($("#mw-scribunto-console"));		$("#mw-content-text .mw-editTools").insertAfter($("#mw-scribunto-console"));		$("#mw-scribunto-console input[type='button']").after($("", {			"class": "button",			html: "Toggle",			click: toggleEditOptions,		}));		$("#mw-editform-cancel").insertAfter($("#mw-scribunto-console input[type='button']")).attr("class","button").css("float","right");		$("#wpDiff").insertAfter($("#mw-editform-cancel")).attr("class","button").css("float","right");		$("#wpSave").insertAfter($("#wpDiff")).attr("class","button").css("float","right");		toggleEditOptions;		// $("#mw-content-text .wikiEditor-ui").insertBefore($("#mw-scribunto-console")); // $("#mw-content-text .wikiEditor-ui-clear").insertBefore($("#mw-scribunto-console")); }	clearInterval(timer); }, 2000);

console.log('Custom JS Complete.');

// community header fix /* $(".fandom-community-header__background").addClass("cover");