Java gurus - Help requested

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thonglife
    So Fucking Banned
    • Oct 2004
    • 1566

    #1

    Java gurus - Help requested

    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();
  • thonglife
    So Fucking Banned
    • Oct 2004
    • 1566

    #2
    Or even a text editor which will allow me to search and grab any phrase like "http://" and copy into my clipboard. Essentially, I am trying to pull all the non-hotlinked rapidshare/megaupload links from a webpage into notepad or something similar.

    Comment

    Working...