User:Π/Scripts/Recenctchanges.js

//Experimental do not use

function rcrollback{ if (wgPageName == "Special:RecentChanges"){ var tables = document.getElementsByTagName("ul"); var j; for (j=0;j<tables.length;++j){ if (tables[j].getAttribute("class")=="special"){ var entries = tables[j].getElementsByTagName("li"); var i;      for (i=0;i<entries.length;++i){ var links = entries[i].getElementsByTagName("a"); var diff = links[0]; if (diff.getAttribute("tabindex")){ var pageref=diff.getAttribute("href"); var req = false; if (window.XMLHttpRequest) { req = new XMLHttpRequest; } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } if (req) { req.open("GET", pageref, true); //req.overrideMimeType("text/xml"); req.onreadystatechange = function {      xmlhack.innerHTML = req.responseText; var link = getElementsByClassName(xmlhack,"span","mw-rollback-link","a"); entries[i].innerHTML += ' [rollback]' }   req.send(null); }

}       }  }  }  } }

addOnloadHook(rcrollback);