Content deleted Content added
1.7 |
2.0 |
||
Line 1:
/// User:PerfektesChaos/js/autoBackup/r.js
/// 2017-01-
/// Fingerprint:#0#
/// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA)
///<nowiki>
(function(mw,$){
"use strict";
var BAK,
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=
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
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);}▼
▲mw.loader.using(["user","mediawiki.api","mediawiki.user","mediawiki.util"],BAK.fire);
mw.loader.state("ext.gadget.autoBackup","ready");}
if(!BAK.loaded){
|