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

Content deleted Content added
1.7
2.0
Line 1:
/// User:PerfektesChaos/js/autoBackup/r.js
/// 2017-01-0405 PerfektesChaos@de.wikipedia
/// Fingerprint:#0#FB8AFD3769C47232#
/// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA)
///<nowiki>
(function(mw,$){
"use strict";
var BAK,vsnVSN=12.70;
if(typeof mw.libs.autoBackup!=="object"||!mw.libs.autoBackup){
mw.libs.autoBackup={};}
Line 12:
BAK.doc="[[w:en:User:PerfektesChaos/js/autoBackup]]";
BAK.type="autoBackup";
BAK.vsn=vsnVSN;
BAK.cnf={maxAge:72,maxHist:5,maxPages:10,maxRev:3,mid:5,msec:300000};
BAK.disk={self:"AutoBackupPerfectChaos",stick:"newest|subject"};
Line 171:
};
BAK.gui.facility=function(){
var portlet=mw.util.addPortletLink("p-cactions","#",BAK.cnf.self,"ca-"+BAK.type),$portlet=$(portlet);
if(!BAK.cnf.self){
BAK.cnf.self=BAK.cnf.feature("BAKself");}
portlet=mw.util.addPortletLink("p-cactions","#",BAK.cnf.self,"ca-"+BAK.type);
$portlet=$(portlet);
$portlet.click(BAK.fresh);
$portlet.attr({title:BAK.type+" "+BAK.vsn});
Line 676 ⟶ 680:
BAK.error="JSON unavailable";
}else if(mw.config.get("wgNamespaceNumber")>=0){
mw.loader.using(["user","mediawiki.api","mediawiki.user","mediawiki.util"],BAK.fire);}
$(window.document).ready(function(){
mw.loader.using(["user","mediawiki.api","mediawiki.user","mediawiki.util"],BAK.fire);
});}
mw.loader.state("ext.gadget.autoBackup","ready");}
if(!BAK.loaded){