Skip to content

Instantly share code, notes, and snippets.

@jkmartindale
Last active September 3, 2022 18:01
Show Gist options
  • Save jkmartindale/062de04cd23ada8aac6fa5683c30d1bb to your computer and use it in GitHub Desktop.
Save jkmartindale/062de04cd23ada8aac6fa5683c30d1bb to your computer and use it in GitHub Desktop.
Bypass that annoying as hell, buggy task verification gate
let user = JSON.parse(localStorage.getItem('user'));
user.giveaways[user.giveaways.length-1].tasks.forEach(task => task.completed = '1');
localStorage.setItem('user', JSON.stringify(user));
refreshInterface();
for(let taskid in [0, 1, 2, 3, 4, 5, 6]) {
var user = JSON.parse(localStorage.getItem('user'));
if (user.giveaways[1].tasks[taskid].completed == '0') {
user.giveaways[1].tasks[taskid].completed = '1';
user.giveaways[1].secident = user.giveaways[1].secident + 1;
localStorage.setItem('user', JSON.stringify(user));
refreshInterface();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment