Wes Bos the web developer specialising in HTML5 and Javascript investigated the Angry Birds code for Chrome. His hack takes advantage of unencrypted local storage values it’s a code line you can copy and paste into your Chrome browser’s address bar when you have the web game up.
Here’s the line to access every level:
javascript: var i = 0; while (i<=69) { localStorage.setItem(‘level_star_’+i,’3′); i++; } window.location.reload();
This is a useful code for those of you that don’t want to replay levels from the mobile versions, or just like to cheat.
However, if you’re tired of being a cheater, you can copy and paste the following line to lock all the levels again: javascript: var i = 1; while (i<=69) { localStorage.setItem(‘level_star_’+i,’-1′); i++; } window.location.reload();
The line works whether you’re playing in Chrome, Firefox, Safari or Opera, though it still plays the best in Chrome. Wes Bos explained how he did this, saying: “In the talk Rovio did at Google IO, they mentioned they were using HTML5′s LocalStorage.
If you open up Web Inspector in chrome, you’ll see they are keeping track of your score and stars with localstorage. Lucky for us, that means we can use setItem() set all 70 levels to 3 and get access to them all.” Even angry birds is getting hacked, is there no gaming safe?