Skip to content

Instantly share code, notes, and snippets.

@DasLampe
Created July 16, 2010 11:02
Show Gist options
  • Save DasLampe/478230 to your computer and use it in GitHub Desktop.
Save DasLampe/478230 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name FarmVilleAutoAcceptBot
// @namespace http://dasLampe.lano-crew.org
// @description Autoaccept of Gifts, for Greasemonkey
// @include http://apps.facebook.com/onthefarm/*
// @include https://apps.facebook.com/onthefarm/*
// ==/UserScript==
function main()
{
var button = document.getElementsByName("acceptReward");
for(var i = 0; i < button.length; i++)
{
if(button[i].className == "inputyessubmit")
{
button[i].click();
}
}
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment