Jump to content

User:PerfektesChaos/js/tableXpander/scout/r.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/// tableXpander/scout.js
/// 2020-07-26 PerfektesChaos@de.wikipedia
///<nowiki>
(function(mw,$){
"use strict";
var Version=1.0,Signature="tableXpander",GUI={show:Signature+"@PerfektesChaos",sign:"|}===={|",start:"https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/"+Signature+"/"+(Version>0?"r":"d")+".js&action=raw&ctype=text/javascript"};
GUI.fire=function(){
mw.loader.using(["mediawiki.util"],GUI.firing);
};
GUI.fired=function(){
GUI.$portlet.empty();
mw.loader.load(GUI.start);
};
GUI.firing=function(){
$(GUI.furnish);
};
GUI.furnish=function(){
var sign="t-"+Signature;
if(!$("#"+sign).length){
GUI.$portlet=$(mw.util.addPortletLink("p-tb","#",GUI.sign,sign,GUI.show,null,null));
GUI.$portlet.click(GUI.fired);}
};
GUI.fire();
}(window.mediaWiki,window.jQuery));
/// EOF</nowiki>tableXpander/scout.js