jQuery(document).ready(function() {
botList = ",ArchivBot,Archiver,BaisemainBot,BaluBot,CarsracBot,ChuispastonBot,CruxBot,DerbethBot,Gyroidbot,IBot,IgelBot,Interwicket,JAnDbot,KipBot,KlaudiuBot,Luckas-bot,MelancholieBot,MonoBot,OKBot,Peti610bot,Pill Test,QualiaBot,RobotGMwikt,SpaceBirdyBot,Tsca.bot,VolkovBot,WikitanvirBot,Zumg,AHbot,Aibot,Alexbot,Almabot,BOT-Superzerocool,BodhisattvaBot,BotMultichill,EivindBot,FiriBot,HerculeBot,Kwjbot,LaaknorBot,MSBOT,MenoBot,RoggBot,SpBot,CommonsDelinker,RedirectBot,DoubleRedirectBot,StMHBot,";
function hideBots() {
$("hideBotsLink").innerHTML = '';
var prevUserName = "";
var lis = $("pagehistory").getElementsByTagName("li");
for (var l = 0; l < lis.length; l++) {
var li = $("pagehistory").getElementsByTagName("li");
var ls = li.getElementsByTagName("a");
for (var a = 0; a < ls.length; a++) {
if (li.getElementsByTagName("a").className.indexOf("mw-userlink") > -1) {
if (botList.indexOf(","+li.getElementsByTagName("a").innerHTML+",") > -1 || li.getElementsByTagName("a").innerHTML == prevUserName) {
$("pagehistory").removeChild(li);
l = l-1;
}
prevUserName = li.getElementsByTagName("a").innerHTML;
}
}
}
var fin = $("pagehistory").getElementsByTagName("li").getElementsByTagName("input");
fin.checked = true;
fin.removeAttribute("style");
$("pagehistory").getElementsByTagName("li").getElementsByTagName("input").setAttribute("style", "visibility:hidden");
$("pagehistory").getElementsByTagName("li").getElementsByTagName("input").checked = true;
}
function hideBotsLink() {
$("histlegend").innerHTML += '<div id="hideBotsLink" style="margin-bottom: -5px; text-align: center;"><\/div>';
}
});