You are here: Home > Google Chrome Tutorial

Unlock Angry Birds Level With JavaScript Code

May 18, 2011 06:20 PDT

You have heard the news already. Angry Birds are not restricted to the mobile devices, and now have entered the computers, laptops with their web based version, running and destroying the pigs in the Google Chrome browser. You can play it online, and you can download it too to your hard drive, and play the game offline. But yes, no one is that genuine in playing it. Some would want to go past through levels if they fail at winning that level genuinely. And for those, there is always some solution.

Now you can unlock any level in the Angry Birds game, using a simple Javascript code. To unlock the levels, just open the Game and while playing any level, paste this Javascript code into the address bar and see the magic happen. You won't need to hit your brain hard to work it on killing the pigs.

javascript: var i = 0; while (i< =69) { localStorage.setItem('level_star_'+i,'3'); i++; } window.location.reload();

Screenshot: Unlock Angry Birds Level With JavaScript Code

Screenshot: Unlock Angry Birds Level With JavaScript Code

This trick is helpful for those playing the game online in Google Chrome. There is even a javascript code which you can use to lock the levels again, if you want to try to go past through that level using your own skills.

javascript: var i = 1; while (i< =69) { localStorage.setItem('level_star_'+i,'-1'); i++; } window.location.reload();

This is a HTML5 hack that a developer did based on the statement Google had given that the game uses the HTML5’s LocalStorage for all the levels. So, all the stars and the scores were stored in the local storage, which could be manipulated with the stages which you even didn’t try to play yet.

The game and this trick both work with not just the Google Chrome browser but even with the Firefox browser, but people have reported that there are problems with the code working in Safari where the browser crashed. But as the developers say, it was to be tried only in the Chrome browser where the game reloads with the levels unlocked.

Other resources about Angry Birds

  • Chrome Blog: A flock of apps storming the Chrome Web Store - Angry Birds, the most popular game for mobile devices, has arrived in the Chrome Web Store.
  • Google Blog: - Our first video is from Rovio Mobile Inc, makers of Angry Birds, a gaming app that has been downloaded more than 30 million times across 60 countries
  • W3Schools: JavaScript Tutorial - With our editor, you can edit JavaScript code online and click on a button to ... At W3Schools you will find a complete reference of all JavaScript objects, ...

Posted by Andrew.

#1  posted on May 20, 2011 21:49 PDT
That's good that java can open any level of angry birds.

#2  posted on June 10, 2011 10:16 PDT
@iPhone 5: JavaScript, not Java; two completely different things.

#3  posted on October 01, 2011 10:36 PDT
doesnt work on my chrome

Leave your comment
If you want to leave your comment on this article, simply fill out the next form:
Name: * Requirement
E-mail: Optional (won't be published)
Website / Blog: Optional
Are you a human? For anti spammer, please calculate following expression:
4 x 2 + 1 = * Requirement
* Requirement
You can use these tags:
[b] Text [/b]: Bold text
[quote] Text [/quote]: Quote text