Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
You forgot to change the name of the script to 1.2 in the source. |
|
|
Script Updated. It now includes a simple check of urls as captaintk suggested. Enjoy! =] |
|
|
i just changed the getLink function to improve performance and reliability.
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
|
|
|
I believe he means this one:
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 :/ |
|
|
What shopping page are you talking about? If you could link me, it would be nice of you. |
|
|
Is there an easy way to stop it from visiting the shopping page? |
|
|
No, sorry. Greasemonkey only starts executing code when the page is fully loaded... |
|
|
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.
|
|
|
This has been updated and I added the fixes your requested, Bitsy. |
|
|
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. |