I am currently using the following code in a Firefox bookmark to lift filesharing hosted urls to a separate and unique page - making it easier for reporting to abuse. The problem I have is when the links are not 'hot' and just sit on the page as plain text. The script will only pull urls that are using <a href="">. Anyone know a way I can lift them in plain text off a web page??> Here's the code and TIA!
javascript:var f=%22%22;for(i=0;i<document.links.length;++i){var l=%22%22+document.links[i];var e=l.match(/(rapidshare|megashare|filefactory|megaupload|megar otic)/);
if(e){f=f+document.links[i]+%22<br>%22;}};for(i=0;
i<document.getElementsByTagName(%22td%22).length;i ++){if (document.getElementsByTagName(%22td%22)[i].className==%22code%22)
{for(var j=0;j<document.getElementsByTagName(%22td%22)[i].childNodes.length;j++)
{if(document.getElementsByTagName(%22td%22)[i].childNodes[j].data)
{f=f+document.getElementsByTagName(%22td%22)[i].childNodes[j].data+
%22<br>%22}}}};rars=window.open(%22%22,%22_blank%2 2);
rars.document.write(f);rars.document.close();
javascript:var f=%22%22;for(i=0;i<document.links.length;++i){var l=%22%22+document.links[i];var e=l.match(/(rapidshare|megashare|filefactory|megaupload|megar otic)/);
if(e){f=f+document.links[i]+%22<br>%22;}};for(i=0;
i<document.getElementsByTagName(%22td%22).length;i ++){if (document.getElementsByTagName(%22td%22)[i].className==%22code%22)
{for(var j=0;j<document.getElementsByTagName(%22td%22)[i].childNodes.length;j++)
{if(document.getElementsByTagName(%22td%22)[i].childNodes[j].data)
{f=f+document.getElementsByTagName(%22td%22)[i].childNodes[j].data+
%22<br>%22}}}};rars=window.open(%22%22,%22_blank%2 2);
rars.document.write(f);rars.document.close();

Comment