User:Blad/global.js

/* © CC BY-SA 3.0 Publisher: Matttest if (mw.config.get('wgNamespaceNumber') % 2 == 1 && (mw.config.get('wgAction') == "edit" || mw.config.get('wgAction') == "submit")) { $(function {        if (!document.editform || !document.editform.wpSave || !document.editform.wpTextbox1) return;        var oldOnclick = document.editform.wpSave.onclick;        document.editform.wpSave.onclick = function  {            if (oldOnclick && !oldOnclick.apply(this, arguments)) return false;            if (document.editform.wpTextbox1.value.match(/~{3}/)) return true;            return confirm("You haven't signed after leaving your message, save anyway？");		};    }); } /* Mass patrol, written by User:OrangeStar */ mw.loader.load("//meta.miraheze.org/wiki/User:OrangeStar/masspatrol.js?action=raw&ctype=text/javascript"); /* Custom sidebar, written by User:OrangeStar */ mw.loader.load("//meta.miraheze.org/wiki/User:OrangeStar/customsidebar.js?action=raw&ctype=text/javascript"); /* Global Twinkle */ mw.loader.load("https://dev.miraheze.org/wiki/MediaWiki:Twinkle.js?action=raw&ctype=text/javascript");