User:Color probe/rtl.js

//

// Revert to last diff, by color probe (beta v.0.1) // Please leave these lines

addOnloadHook(function {    z=document.getElementById("content").childNodes;    for (var n=0;n<z.length;n++) {       if (z[n].className=="firstHeading") {        var pname=z[n].textContent;      }    }    var l=addTab("http://en.wikipedia.org/w/index.php?title=" + pname + "&action=edit&autoclick=wpSave&autosummary=Revert%20vandalism&autosummaryprompt=true&oldid=prev", 'RTL', '');    l.lastChild.title="Revert to last diff"; });

//