User:JohnnyMrNinja/AppTab.js

importScript('User:Luasóg bot/framework.js'); if (typeof jQuery == 'undefined') mw.loader.load('//bits.wikimedia.org/skins-1.5/common/jquery.min.js'); $(function { var watchlistElem = document.getElementById('transclude-watchlist');  if (watchlistElem != null)  {    if (typeof transcludeWatchlistLimit == 'undefined')      transcludeWatchlistLimit = 100;    watchlistElem.innerHTML = ' Loading … ';    var luasog = new Luasog("http://en.wikipedia.org/w/api.php");    var requestParams = {action:"query", list: "watchlist", wlexcludeuser: wgUserName, wlprop: "ids|title|timestamp|user|parsedcomment|flags", wllimit: transcludeWatchlistLimit};    var callback = function(data) {      var result = document.createElement("ul");      for (var i = 0; i < data.query.watchlist.length; i++) {        var edit = data.query.watchlist[i];        result.innerHTML += '(diff)  + (edit.minor == undefined ? '' : 'm') + (edit.bot == undefined ?  : 'b') + '' ' + edit.title + ' ' + edit.timestamp + ' ' + edit.user + ' (' + edit.parsedcomment + ')';     }      var watchlistElem = document.getElementById('transclude-watchlist');      watchlistElem.replaceChild(result, watchlistElem.firstChild);    }    luasog.request(requestParams, callback);  } var limit="0:30"

if (document.images){ var parselimit=limit.split(":") parselimit=parselimit[0]*60+parselimit[1]*1 } function beginrefresh{ if (!document.images) return if (parselimit==1) window.location.reload else{ parselimit-=1 curmin=Math.floor(parselimit/60) cursec=parselimit%60 if (curmin!=0) curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!" else curtime=cursec+" seconds left until page refresh!" window.status=curtime setTimeout("beginrefresh",1000) } }

window.onload=beginrefresh

var all = document.all.tags("a"); for (var i = 0; i < all.length; i++) { all[i].target=all[i].target==""?"_new":all[i].target; } });