Content deleted Content added
1.2 |
1.3 |
||
Line 1:
/// User:PerfektesChaos/js/clickDivertimento/r.js
/// 2015-
/// Fingerprint:#0#
/// @license GPL [//www.mediawiki.org/w/COPYING](+GFDL,LGPL,CC-BY-SA)
///<nowiki>
(function(mw,$){
"use strict";
var vsn=1.
if(typeof mw.libs[CDV]!=="object"||!mw.libs[CDV]){
mw.libs[CDV]={};}
Line 36:
}else{
this[s]=false;}}
Prego.lib=false;▼
}else{▼
Prego.lib=mw.libs[Prego.supply];
if(typeof Prego.lib==="object"&&Prego.lib&&typeof Prego.lib.fetch==="function"){
vals=Prego.lib.fetch(CDV.type);
if(vals&&typeof vals==="object"){
Line 47 ⟶ 44:
s=v[0];
if(typeof vals[s]===v[1]){
this[s]=vals[s];
▲}else{
▲Prego.lib=false;}
if(typeof CDV.targets==="object"&&CDV.targets&&this.mode){
this.targets={};
Line 70 ⟶ 69:
};
Prego.fire=function(){
this.supply="preferencesGadgetOptions";
if(!mw.loader.getState(
mw.loader.
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/"+this.supply+"/r.js&action=raw&bcache=1&maxage=604809&ctype=text/javascript" };
▲return this.signature;
Prego.firing=function(){
mw.hook(Prego.supply+".ready").add(fire);
};
Prego.form=function(){
Line 130 ⟶ 133:
$(this).attr("target",Config.shift);}
function furnish($area){
var scope,$hypes;
switch(Config.kind){
case 1:
Line 161 ⟶ 164:
$hypes.each(fiat);
if(Config.kind>1){
if(Config.kind===2&&Config.start==="history"){
scope=scope+", #mw-history-compare";}
$(scope).each(form);}}
function fire(){
var i;
Line 181 ⟶ 187:
Config.kind=2;}
}else{
switch(
case "edit":
case "submit":
Config.kind=4;
$(".cancelLink").hide();
break;
case "history":
Line 210 ⟶ 217:
mw.hook("wikipage.content").add(furnish);}}}
CDV.fire=function(){
var env=mw.config.get(["wgAction","wgCanonicalSpecialPageName","wgNamespaceNumber"]),launch=true;
mw.loader.state(CDV.signature,"ready");
Config.learn=false;
if(
Config.special=
switch(Config.special){
case "Gadgets":
Line 227 ⟶ 234:
break;
default:
launch=false;
}else{
Config.start=env.wgAction;}
if(launch){
Prego.fire();
mw.loader.using(["user","user.options"
};
if(typeof CDV.loaded!=="boolean"){
|