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

Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Nessun oggetto della modifica
Riga 801:
latesttime=new String(latesttime);
temp=""+new Number(latesttime.substr(6,2))+" "+monthname[latesttime.substr(4,2)]+" "+latesttime.substr(0,4);
alert("Categoria="+c);
for(loop=0;loop<a.length;loop++)
alert("a["+loop+"].innerHTML="+a[loop].innerHTML);
 
i=a.length;
Riga 810 ⟶ 807:
if(a[i].innerHTML==temp)
{
alert("a["+i+"].tagName="+a[i].tagName);
alert("a["+i+"].innerHTML="+a[i].innerHTML);
alert("a["+i+"].nextSibling.tagName="+a[i].nextSibling.tagName);
alert("a["+i+"].nextSibling.innerHTML="+a[i].nextSibling.innerHTML);
temp=a[i].nextSibling.firstChild;
 
alert("temp prima del while="+temp);
while(temp!=null)
{
if(temp.tagName!=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]);
Riga 831 ⟶ 821:
if(temp==null) {alert("I'm breaking 2"); break};
}
alert("temp subito dopo il while="+temp);
temp=document.createElement("li");
if (temp2!=null)
alert("temp="+temp);
a[i].nextSibling.insertBefore(temp,temp2);
alert("temp2="+temp2);
else
if (temp2!=null)
a[i].nextSibling.insertBeforeappendChild(temp,temp2);
 
else
a[i].appendChild(temp);
alert("temp poco dopo il while="+temp);
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 845 ⟶ 832:
"(<a href='http://it.wikipedia.org/w/index.php?title="+encodeURI(latestpage)+
"&diff=last'>last</a>))";
alert("temp no inner="+temp);
alert("temp alla fine="+temp.innerHTML);
return;
}