Chrome Angry Birds already hacked, play all levels

Angry Birds web You’ve probably read that Peter Vesterbacka announced Angry Birds is now playable for free on the web. Though the chrome version was released earlier today, someone has already put out a code to unlock all the levels, even the special Chrome ones.

Wes Bos, a web developer who specializes in HTML5 and Javascript, began to investigate the code for the game as soon as it was released for Chrome. He found a hack taking advantage of unencrypted local storage values. The Toronto based web developer then shared his findings on his site; it’s a  line which 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?

Get our Top Stories delivered to your inbox: