Automatically enters giveaways on steamgifts.com
< Feedback on Steamgifts Auto Entry
Adding this:copiestest = $('.giveaway__heading__thin', $(this)).html().match("(\\d+) Copies"); if(copiestest !== null){ entriespercopy = parseInt(parseInt(earr[1])/parseInt(copiestest[1])); } else { entriespercopy = parseInt(earr[1]); }
Between this:var earr=entriesregex.exec($(this).find('.giveaway__links a').html().replace(',',''));
And this:if(ok==true && earr!=null && earr.length==2) {
And replacing this:if(gamelist[gameidx].maxentries!="nothing" && gamelist[gameidx].maxentries!=-1 && parseInt(gamelist[gameidx].maxentries)
For this:if(gamelist[gameidx].maxentries!="nothing" && gamelist[gameidx].maxentries!=-1 && parseInt(gamelist[gameidx].maxentries)
Did it.
Feature request: multiple copies change max entries.
Ex: If I Have "Garry's Mod" with 2000 max entries configured, and there is a giveaway with (3 copies) of it, the script could consider 6000 max entries instead of 2000.