The Hunger Site Autoclicker

By Jonathan D Last update Dec 10, 2008 — Installed 560 times.

minor change?

in
Subscribe to minor change? 5 posts, 3 voices



icougil User
FirefoxWindows

Hi!

I was trying your script but I always get the alert "Error!" message. Review the code and comparing throught the source I found that could be the problem is the name of the element to be clicked. I suppose that someone change this. Anyway, I've tried changing the search and click action of the "_id" object with "j_id", and ... it works!

Thank you for your script!

 
bmn Scriptwright
FirefoxWindows

I think that now the lines should be:
if(document.getElementById("clickToGiveForm:clickToGiveButton"))

and
document.getElementById("clickToGiveForm:clickToGiveButton").click();

also new change replace "Click to Give" with "a free click" and it should work.

 
SUPER_KEG Scriptwright
FirefoxWindows

Another change replace
document.getElementById("topNav")
with
document.getElementById("nav")
This makes the order of clicking the pages a bit weird but seems to work.

 
SUPER_KEG Scriptwright
FirefoxWindows

Another change, replace:
var sites=new Array("The Hunger Site","The Breast Cancer Site","The Child Health Site","The Literacy Site","The Rainforest Site","The Animal Rescue Site");
with
var sites=new Array("The Hunger Site","The Breast Cancer Site","The Animal Rescue Site","The Veterans Site","The Autism Site","The Child Health Site","The Literacy Site","The Rainforest Site");
(Corrects previous order problem and adds new sites)

Complete code with changes http://pastebin.com/sJtvKhrx

 
SUPER_KEG Scriptwright
FirefoxWindows

In the function nextSite(site)
document.getElementById("nav")
is referenced twice it should now be document.getElementById("nav-sites")