Utente:Jalo/monobook.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
Nessun oggetto della modifica |
||
Riga 730:
// optional: bundle.onFailure (xmlhttprequest, bundle)
// optional: bundle.otherStuff OK too, passed to onSuccess and onFailure
var x = window.XMLHttpRequest ? new XMLHttpRequest()
Riga 737 ⟶ 736:
if (x) {
x.onreadystatechange=function() {
x.readyState==4 && cwwpajax.downloadComplete(x,bundle);
Riga 748 ⟶ 746:
downloadComplete:function(x,bundle) {
x.status==200 && ( bundle.onSuccess && bundle.onSuccess(x,bundle) || true )
|| ( bundle.onFailure && bundle.onFailure(x,bundle) || alert(x.statusText));
Riga 777 ⟶ 774:
for(i in a)
{
alert("In for")▼
temp=a[i].indexOf("</timestamp>");
if(temp!=-1)
{
temp=new Number(a[i].substr(0,temp));
if(temp>latesttime)
{
latesttime=temp;
a[i]=a[i].substr(a[i].indexOf("<title>")+7);
latestpage=a[i].substr(0,a[i].indexOf("</title>"));
alert("latest time="+latesttime);
alert("latest page="+latestpage);
}
}
Riga 807 ⟶ 803:
monthname['12']="Dicembre";
latesttime=new String(latesttime);
alert("latesttime string="+latesttime);
temp=""+new Number(latesttime.substr(6,2))+" "+monthname[latesttime.substr(4,2)]+" "+latesttime.substr(0,4);
alert("a.length="+a.length);
i=a.length;
while(i--)
{
if(a[i].innerHTML==temp)
{
Riga 818 ⟶ 816:
while(temp!=null)
{
if(temp.tagName!=null)
if(temp.tagName.toLowerCase()=="li")
Riga 851 ⟶ 848:
//http://it.wikipedia.org/w/query.php?what=category&cptitle=Guerre%20Stellari&cplimit=100&cpextended&format=xml
addOnloadHook(function(){
if(wgPageName=="Speciale:Watchlist")
{
if(CategorieOsservate==undefined)
{
Riga 873 ⟶ 868:
}
});
//**** fine CATEGORY WATCHLIST ******
|