User:Voice of All/Backlog/monobook.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('Wikipedia:',).replace('Category:',) + '';}  } backlog = backlog.replace(', ',); if (backlog != )  {  var message = ' ' + ' Administrator backlogs: ' + backlog + ' ';  var csub=document.getElementById("top");  var msg=document.createElement("backlog");  msg.innerHTML = message;  msg.className="backlogs";  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; } ////////////