Created
July 16, 2010 11:02
-
-
Save DasLampe/478230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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