indiegala-auto-enter
A script to automatically enter Giveaways on IndieGala
Installation
Install Tampermonkey and then click here.
Options
Edit the script to change the options
-Object
joinOwnedGames
{Boolean
} - whether or not to auto-enter giveaways of owned games
maxParticipants
{Integer
} - set it to a value greater than 0
if you don't want to auto-enter giveaways that already have at least maxParticipants
participants
gameBlacklist
{Array<String/RegExp>
} - add names of games to this array if you don't want to auto-enter specific games (e.g. DLCs IndieGala doesn't recognized as owned or DLCs of games you don't own)
onlyEnterGuaranteed
{Boolean
} - whether or not to only auto-enter guaranteed giveaways
userBlacklist
{Array<String/RegExp>
} - add names of users to this array if you don't want to auto-enter their giveaways
skipSubGiveaways
{Boolean
} - whether or not to auto-enter giveaways that are linked to subs. Those games are usually not recognized correctly as owned. Added in 1.1.1
.
interceptAlert
{Boolean
} - whether or not to intercept (and ignore) alerts. Added in 1.1.4
.
waitOnEnd
{Number
} - when reaching the last giveaway page the script will wait waitOnEnd
minutes before it will navigate to the first page and resume its work. Added in 1.1.4
.
timeout
{Number
} - when making a request to IndieGala the script will wait timeout
seconds before it will retry. Added in 1.1.4
.
debug
{Boolean
} - set to true
if you want to see log output of this script in the console
If there is an update, backup the options first. It will be overwritten otherwise.
Disclaimer
I don't take any responsibility for damage caused by this software. Use this software at your own risk.
Release Notes
1.1.10
IndieGala now blocks fast consecutive requests, so a delay after a blocked requests (1 minute) has been implemented
1.1.9
- If the user is on level 0 we are requesting a filtered page by this level (by Tiago Danin)
- When the server responds with
insufficient_credit
(usually happens when we are defaulting the coins to 240), we are now setting the user's coins to the giveaway's price minus 1
1.1.8
- FIX: If the available coins cannot be determined then assume the user has 240 coins (instead of 0)
1.1.7
- FIX: When the request to
/profile
fails, the script doesn't crash anymore. Furthermore the request won't be retried anymore and a default value for my.nextRecharge
will be set (20 min)
my.coins
are now retrieved from the current giveaway page instead of from /profile
1.1.6 readded joinOwnedGames
1.1.5 Coins and recharge time are now fetched from the profile page instead, since IndieGala changed the API of /get_user_level_and_coins
(fixed by Yuping Zuo)
1.1.4 Added features to prevent some reasons the script may get stuck:
- IndieGala's issues are being displayed in
alerts
which stops the script until okayed. If interceptAlert
is set to true, the script will intercept and ignore these messages.
- The script used to travel past the last giveaway page and go further and further and further and further and ... When reaching the last page, it will now return to the first page instead. See
waitOnEnd
.
- Sometimes IndieGala seems to be under heavy load and doesn't respond to some requests. The script will now retry if a requests fails or times out. See
timeout
.
- removed
joinOwnedGames
1.1.3
- Some log changes.
- When asking for owned games, don't ask with gameId as IndieGala does, but with the appId if available.
- Code more documented
- Stop script when not on a giveaway list page (e.g. a details page)
1.1.2 We are asking IndieGala directly if a game is owned to prevent a race condition between this script and IndieGala's subsequent render of the blue Steam-corner
1.1.1 replaced skipImagelessGiveaway
with skipSubGiveaways
1.1.0 skipImagelessGiveaway
added. Blacklists can now contain regular expressions.
1.0.4 shouldEnter
checks reordered
1.0.3 Unused function waitForRecharge
removed
1.0.2 Check before navigating to the next page, if there are coins to spend. If not, don't navigate and wait for recharge.
1.0.1 Additional log outputs
1.0.0 Initial Release