Usor:Andrew Dalby/common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
mw.loader.using("mediawiki.user", function () {
$('body').delegate('#hotcatCommitForm', 'submit', function () {
// The variable "this" refers to the form. Its fields can be accessed directly, e.g.
// this.wpTextbox1 gives you the textarea containing the page text of the edit.
var submitType = this.wpDiff;
if (submitType && (!this.oldid || this.oldid.value == '0')) {
// Switch form submission from diff to save. Don't do this if "oldid" is set to anything but '0':
// that indicates an edit conflict with yourself, and in that case you really, really do want
// to see the diff!
this.wpEditToken.value = mw.user.tokens.get("csrfToken");
submitType.name = submitType.value = 'wpSave';
}
return true;
});
});
window.hotcat_single_changes_are_minor = true;
(function(){function setShortCuts(){if (!window.HotCat.addShortcuts) return; window.HotCat.addShortcuts({
// Do not modify above. Add your shortcuts below
// Shortcut : Replacement, both inside single quotes. If the replacement shall contain a single quote, write it as \'
// ADD YOUR SHORTCUTS HERE. DO NOT FORGET THE COMMA AT THE END OF EACH LINE.
'aa':'Alumni academiarum ',
'au':'Alumni Universitatis ',
'ai':'Alumni Instituti ',
'as':'Alumni Scholae ',
'asg':'Alumni studiorum generalium',
'aus':'Alumni universitatum et scholarum ',
'pa':'Professores academiarum ',
'pus':'Professores universitatum et scholarum ',
'pu':'Professores Universitatis ',
'pi':'Professores Instituti ',
'ps':'Professores Scholae ',
'psg':'Professores studiorum generalium',
'ss':'Scholae superiores ',
'un':'Universitas ',
'ep':'Episcopi ',
'in':'Incolae ',
'er':'Eruditi ',
'po':'Politici ',
'ns':'Nati saeculo ',
'ms':'Mortui saeculo ',
'lh':'Loci habitati ',
'lhp':'Loci habitati praefecturae ',
'lhc':'Loci habitati comitatus ',
'la':'Loci archaeologici ',
'cp':'Communia praefecturae ',
'aq':'Ars coquinaria ',
'ga':'Gastronomia ',
// Do not modify below
});} if (window.HotCat && window.HotCat.runWhenReady) window.HotCat.runWhenReady(setShortCuts); else $('body').bind('hotcatSetupCompleted',setShortCuts);})();
mw.loader.load('/w/index.php?title=Usor:Grufo/scripts/renovatio.js&action=raw&ctype=text/javascript'); // Nexus: [[Usor:Grufo/scripts/renovatio.js]]