Anonymous user
MediaWiki:Gadget-morebits.js: Difference between revisions
Repo at bab8522: Use csrfToken in mw.user.tokens (#712); Convert mw.RegExp.escape to mw.util.escapeRegExp as the former is being deprecated (#711); Update handling of blacklist and abusefilter errors from API (breaking change for 1.34.0-wmf.23) (#707); internationalize Date, and remove unused functions (#635); enable multiline unbinder (#510); replace + in Morebits.queryString (fix longstanding bug) (#678)
imported>Krinkle (Maintenance: mw:RL/MGU - Updated deprecated module name, Updated deprecated user.tokens key) |
(Repo at bab8522: Use csrfToken in mw.user.tokens (#712); Convert mw.RegExp.escape to mw.util.escapeRegExp as the former is being deprecated (#711); Update handling of blacklist and abusefilter errors from API (breaking change for 1.34.0-wmf.23) (#707); internationalize Date, and remove unused functions (#635); enable multiline unbinder (#510); replace + in Morebits.queryString (fix longstanding bug) (#678)) |
||
Line 962:
RegExp.escape = function(text, space_fix) {
text = mw.
// Special MediaWiki escape - underscore/space are often equivalent
Line 1,190:
*/
unbind: function UnbinderUnbind(prefix, postfix) {
var re = new RegExp(prefix + '(
this.content = this.content.replace(re, Morebits.unbinder.getCallback(this));
},
Line 1,232:
* is fairly unlikely that anyone will iterate over a Date object.
*/
Date.prototype.getUTCMonthName = function() {
return
};
Date.prototype.getUTCMonthNameAbbrev = function() {
return
};
// Morebits.wikipedia.namespaces is deprecated - use mw.config.get('wgFormattedNamespaces') or mw.config.get('wgNamespaceIds') instead
Line 2,623 ⟶ 2,609:
// errors here are only generated by extensions which hook APIEditBeforeSave within MediaWiki,
// which as of 1.34.0-wmf.23 (Sept 2019) should only encompass captcha messages
ctx.statusElement.error('Could not save the page because the wiki server wanted you to fill out a CAPTCHA.');
} else {
ctx.statusElement.error('Unknown error received from API while saving page');
|