User:Voice of All/Protection/monobook.js: Difference between revisions

Content deleted Content added
m
debug
Line 50:
else
{
document.getElementById('bodyContent').innerHTML = '<strong><span style="color:darkblue;">EditLog countcomment completed:and dates inserted</span>' + '</strong><br>' + document.getElementById('bodyContent').innerHTML;
}
}
Line 59:
var Done=0;
var xmlpage = xml_http.responseText.split("<div id='article'>")[1].split('<!-- end content -->')[0];
alert(xmlpage);
//UTC done
if (xmlpage.indexOf('<ul>') == -1)
Line 82 ⟶ 83:
var reason = li_html.split('<span class="comment">(')[1].split(')</span>')[0];
reason = reason.split('[edit=')[0].split('[move=')[0].split(' [edit=')[0].split(' [move=')[0];
if ( reason=='' ) reason = 'none given';
document.getElementsByTagName('li')[li_prot].innerHTML += '<br>[<strong>' + totdays + ' days old</strong>] <i>(' + reason + ')</i>';
}
}