User:Markhurd/hidetopcontrib.js: Difference between revisions

Content deleted Content added
Markhurd (talk | contribs)
m testing failure condition
Markhurd (talk | contribs)
test worked; remove debugging
Line 1:
// [[User:Ais523/hidetopcontrib.js]]
// By a suggestion by [[User:Discospinster]]
// 090325 MEH Attempting to fixFixed where it is not hiding all (top)s., starting with redirects
 
// and continuing after any regex mismatch.
 
// This script color-codes lines according to who has the top contribution for a page.
Line 23 ⟶ 25:
else
{
t=li[i].innerHTML.match(/"\/w\/index\.php\?title\=([^&]*)\&amp\;rxedirectredirect\=no"/);
 
if(t!=undefined)
Line 42 ⟶ 44:
 
if(s!="")
{
 
// li[i].style.display=(li[i].style.display=="none"?"list-item":"none");
 
li[i].innerHTML=li[i].innerHTML + ":";
 
}
}
}