Content deleted Content added
cater for redirects and attempt to continue if the regex doesn't match |
add missing code & whitespace; try catching mismatched regex differently |
||
Line 19:
t=li[i].innerHTML.match(/"\/wiki\/([^"]*)"/);
if(t
t=t[1];
else▼
{
t=li[i].innerHTML.match(/"\/w\/index\.php\?title\=([^&]*)\&\;redirect\=no"/);▼
if(t!=undefined)
▲else
t=t[1];▼
else
continue;▼
}
if(li[i].getElementsByTagName("strong").length>0)▼
▲/"\/w\/index\.php\?title\=([^&]*)\&\;redirect\=no"/
▲t=t[1];
▲continue;
▲if(li[i].getElementsByTagName("strong").length>0)
s="none";
else
|