User:AmiDaniel/abl.js

/* */ ////////////Backlog bar//////////// $(adminbacklog) function adminbacklog { gml_xmlhttp = HTTPClient; if (!gml_xmlhttp) return; var pageurl = 'http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere&target=Template%3AAdminbacklog'; gml_xmlhttp.open("GET", pageurl, true); gml_xmlhttp.onreadystatechange = adminbacklogbar; gml_xmlhttp.send(null); } //

// function adminbacklogbar { if (gml_xmlhttp.readyState != 4) return; xml = gml_xmlhttp.responseText.split('Retrieved from "')[0];  if (name.search('(/|:Image|:Suspected)') == -1 && links[i].split('')[0].indexOf('(transclusion)') != -1 && (name.indexOf('Wikipedia:') != -1 || name.indexOf('Category:') != -1))  {backlog += '' + name.replace('Category:Candidates for speedy deletion','CAT:CSD').replace('Wikipedia:WikiProject on open proxies','WP:OP').replace('Category:Proposed deletion as of ','CAT:PROD (').replace(' June','.6').replace(' 2006',')').replace('Wikipedia:Copyright problems','WP:CP').replace('Wikipedia:',).replace('Category:',) + '';}  } backlog = backlog.replace(', ',); if (backlog !=  || backlog == '')  {  var message = ' ' + ' administrative backlogs ' + backlog + '  ';  var csub=document.getElementById("p-tb");  var msg=document.createElement("alog");  msg.innerHTML = message;  msg.className="backlog"; csub.insertBefore(msg, csub.firstChild) } }

function HTTPClient { var gml_http; if(window.XMLHttpRequest) { gml_http = new XMLHttpRequest; } else if (window.ActiveXObject) { try { gml_http = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { gml_http = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { gml_http = false; }   }  }  return gml_http; } ////////////

/* */