Skip to content

Instantly share code, notes, and snippets.

@trumad
Last active May 26, 2021 10:37
Show Gist options
  • Save trumad/2c7e1832d5d5d15ed4f0cbfb17debac8 to your computer and use it in GitHub Desktop.
Save trumad/2c7e1832d5d5d15ed4f0cbfb17debac8 to your computer and use it in GitHub Desktop.
Run this in the browser console to claim all available twitch prime games.
var buttons = document.querySelectorAll("div[data-a-target=tw-core-button-label-text]")
for (var i=0,j = buttons.length;i<j;i++){
if (buttons[i].textContent.includes("Claim Offer")||buttons[i].textContent.includes("Claim Game")){
buttons[i].click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment