Search This Blog

Thursday, May 19, 2011

How they cracked the chrome version of Angry Birds in one day...

As we posted before Angry Birds is now playable for free on the web here. Now the chrome version - released today has already been hacked you can unlock all the levels including the special Chrome ones.

angry birds video game

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?


Angry Birds video game walkthroughs 3 Star videos - Themes + Seasons + Golden Eggs + Mighty Eagle + Hogs and Kisses + Rio - iPhone Android Mac PC