Angry Birds for Chrome already “hacked”, all levels unlocked
Posted by Bradley Wint on 11/05/2011
The HTML5 based game Angry Birds has already been “hacked” just a few hours after being released. Web developer Web Bos said he quickly jumped onto the scene digging through the backend hardcode to find any loopholes. He soon came across a simple fix that allows users to unlock all levels in the game and giving each level a 3 star rating.
To unlock all levels, just paste the code below into your browser’s address bar, hit the Enter key and then load up the Angry Birds game. I also tried it while I was in the game and it refreshed, unlocking everything.
javascript: var i = 0; while (i<=69) { localStorage.setItem('level_star_'+i,'3'); i++; } window.location.reload();
If you wish to revert to the old settings of unlocking levels per completing a previous level, just enter this in the browser address bar and hit enter to revert to the “non-cheat” mode.
javascript: var i = 0; while (i<=69) { localStorage.setItem('level_star_'+i,'-1'); i++; } window.location.reload();
Game data is stored in HTML5′s LocalStorage, meaning that a bit of tinkering under the hood can allow coders to easily hack the game. The problem may be solved in an updated version, but if they insist on using LocalStorage, someone will always find a way to break the level lock. If you want to skip the intro levels and get to the new secret levels offered only in the Chrome version, then why not give it a try.
By the way, this only works with compatible browsers such as Firefox 4, Chrome, IE9 or any other that supports HTML5.
Related Posts
- tyler
- https://www.blogtechnical.com Bradley Wint
- tyler
- http://twitter.com/quinbrowne quin browne