User:Choocolatiah/common.js

massRenameDelay = 1000; // Optional massRenameSummary = 'mass rename'; // Optional

if (mw.config.get("wgNamespaceNumber") === 14) { window.autoPurgePages = [mw.config.get("wgPageName")]; }

importArticles({   type: 'script',    articles: [		'u:dev:MediaWiki:MassEdit/code.js',		'u:dev:MediaWiki:PortableCSSPad/code.js',    ] });

var acc = document.getElementsByClassName("accordion"); var i;

for (i = 0; i < acc.length; i++) { acc[i].addEventListener("click", function {   /* Toggle between adding and removing the "active" class,    to highlight the button that controls the panel */    this.classList.toggle("active");

/* Toggle between hiding and showing the active panel */ var panel = this.nextElementSibling; if (panel.style.display === "block") { panel.style.display = "none"; } else { panel.style.display = "block"; } }); } /* BackToTopButton, real right. Cannot apply site wide due to customization policy */ function modernReposition {        this.css('left', (            mw.util.$content.offset.left +            // left: 5%            mw.util.$content.width * 95 / 100        ) + 'px');    }