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 00:04, 11 April 2015 (sig reminder). 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("<font style="text-shadow:#F8F8FF 0.2em 0.2em 0.4em,#F4BBFF -0.2em -0.3em 0.6em,#BFFF00 0.8em 0.8em 0.6em;color:#A2006D">[[User:Atsme|Atsme]]</font><font color="gold">&#9775;</font>[[User talk:Atsme|<font color="green"><sup>Consult</sup></font>]] 00:04, 11 April 2015 (UTC)")===-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?"));
        });
    });
});