Jump to content

User:Atsme/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Atsme (talk | contribs) at 18:20, 13 April 2015 (bring back to vector.js). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr_pda%2Fprosesize.js&action=raw&ctype=text/javascript'); // [[User:Dr_pda/prosesize.js]]
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool
importScript('User:Ale_jrb/Scripts/userhist.js');  //[[User:Ale_jrb/Scripts]]
importScript('User:TheDJ/qui.js');
// Add custom Character Inserter entries, to the end of the first 2 groupings
window.charinsertCustom = { 
	"Insert": ' Mention: {\{u|+}}  {\{ping|+}}', 
	"Wiki markup": ' Mention: {\{u|+}}  {\{ping|+}}' 
};
$(document).ready(function() {
    $("#wpSave").one("click", function() { /* change to wpPreview for testing */
        $("#editform").on("submit", function() {
            return !(this.wpTextbox1.value.indexOf("~~"+"~~")===-1 && (
                mw.config.get('wgNamespaceNumber')%2===1 ||
                $.inArray("Non-talk pages that are automatically signed", mw.config.get('wgCategory'))!==-1
              ) && !confirm("No sig, send anyway?"));
        });
    });
});