User:PerfektesChaos/js/autoBackup/r.js: Difference between revisions

Content deleted Content added
2.0
2.1
Line 1:
/// User:PerfektesChaos/js/autoBackup/r.js
/// 20172018-0108-0524 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#69C47232361D3241#
/// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA)
///<nowiki>
(function(mw,$){
"use strict";
var BAK,VSNVERSION=2.01,BAK="autoBackup";
if(typeof mw.libs.autoBackup[BAK]!=="object"||!mw.libs.autoBackup[BAK]){
mw.libs.autoBackup[BAK]={};}
BAK=mw.libs[BAK].autoBackuptype=BAK;
BAK=mw.libs[BAK];
BAK.doc="[[w:en:User:PerfektesChaos/js/autoBackup"+BAK+"]]";
BAK.typevsn="autoBackup"VERSION;
BAK.vsn=VSN;
BAK.cnf={maxAge:72,maxHist:5,maxPages:10,maxRev:3,mid:5,msec:300000};
BAK.disk={self:"AutoBackupPerfectChaos",stick:"newest|subject"};
Line 677:
};
function first(){
var signature="ext.gadget."+BAK.type,rls;
if(typeof JSON==="undefined"){
if(mw.loader.getState(signature)!=="ready"){
BAK.error="JSON unavailable";
rls={};
}else if(mw.config.get("wgNamespaceNumber")>=0){
rls[signature]="ready";
mw.loader.using(["user","mediawiki.api","mediawiki.user","mediawiki.util"],BAK.fire);}
mw.loader.state("ext.gadget.autoBackup","ready"rls);}
}else if(mw.config.get("wgNamespaceNumber")>=0){
if(!BAK.loaded){
mw.loader.using(["user","mediawiki.api","mediawiki.user","mediawiki.util"],BAK.fire);}}}
BAK.loaded=true;
first();}
}(window.mediaWiki,window.jQuery));
/// EOF</nowiki>autoBackup/r.js