Utente:Jalo/monobook.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 812:
alert("a["+i+"].innerHTML="+a[i].innerHTML);
temp=a[i].nextSibling.firstChild;
alert("temp prima del while="+temp.innerHTML);
while(temp!=null)
{
alert("in while");
alert("temp.tagName="+temp.tagName);
if(temp.tagName!=null)
if(temp.tagName.toLowerCase()=="li")
{
alert("so I'm in if, again");
temp2=temp.innerHTML.match(/; ([0-9][0-9]):([0-9][0-9]) \. \./);
temp2=new Number(temp2[1])*100+new Number(temp2[2]);
if(temp2<new Number(latesttime.substr(8,4))) {temp2=temp; alert("I'm breaking 1"); break;}
}
temp2=temp; temp=temp.nextSibling;
if(temp==null) {alert("I'm breaking 2"); break};
}
temp=document.createElement("li");
a[i].nextSibling.insertBefore(temp,temp2);
alert("temp primadopo il while="+temp.innerHTML);
alert("temp2 primadopo il while="+temp2.innerHTML);
temp.innerHTML="(diff) (hist) . . <a href='http://it.wikipedia.org/wiki/Categoria:"+encodeURI(c)+
"'>Category:"+c+"</a>; "+latesttime.substr(8,2)+":"+latesttime.substr(10,2)+" . . (+ "+
Riga 833 ⟶ 837:
"(<a href='http://it.wikipedia.org/w/index.php?title="+encodeURI(latestpage)+
"&diff=last'>last</a>))";
alert("temp dopoalla fine="+temp.innerHTML);
return;
}