NeoSpiderer 1.2

By ricky92 Last update Sep 15, 2008 — Installed 3,172 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 11 posts, 7 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
JoeSimmons Scriptwright

You forgot to change the name of the script to 1.2 in the source.

 
ricky92 Script's Author

Script Updated. It now includes a simple check of urls as captaintk suggested. Enjoy! =]

 
captaintk Scriptwright

i just changed the getLink function to improve performance and reliability.
it filters javascript/aim/swf and avoids recursion.

function getLink()
{
    var linkList = document.getElementsByTagName("a");
    do{
        //alert("trying "+ links[rnd].href.toString());
        rnd = Math.floor(Math.random() * (linkList.length - 1));
        var link = linkList[rnd].href;
    }while (     !  link.match(/^http.+neopets\.com.+phtml$/)
                || link.match(/\.wav$/) 
                || link.match(/logout\.phtml$/)
                || link.match(/process_neofriend_requests.phtml/) 
                               
           )

    return link.toString();

}

i also commented out the alerts but thats only a matter of taste
greetings

 
Freshums User

I believe he means this one:
http://ncmall.neopets.com/mall/shop.phtml?page=...=

The script doesn't load on this page, because the site ncmall.nepets.com isn't an included page.

Adding it to the list doesn't seem to help either :/

 
ricky92 Script's Author

What shopping page are you talking about? If you could link me, it would be nice of you.

 
Aerozol User

Is there an easy way to stop it from visiting the shopping page?

 
ricky92 Script's Author

No, sorry. Greasemonkey only starts executing code when the page is fully loaded...

 
Aerozol User

Looked like it didn't work for a bit, but seems that some .swf neopets images/ files (for instance in the shopping page) make the program think the page hasn't finished loading yet.
Not sure, but is it possible to make the script refresh a new page after ten seconds or so even if the page hasn't finished loading?

 
ricky92 Script's Author

This has been updated and I added the fixes your requested, Bitsy.

 
Bitsy User

You need to add some checks to this script. Took it on a test run and it had me randomly neofriend some strangers, tried to email neopets (support and abuse) a few times and repeatedly got stuck playing wav files on the pronunciation guide forcing me to manually navigate it back to the main page. Pretty useless in its current form.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel