Chromebook Resources & Guides

This Tiny Bit Of JavaScript Will Unlock All Levels Of Angry Birds Web App

Within hours of Angry Birds app for Chrome being announced, a developer posted a small bit of code that will unlock all levels on Chrome Web App or any browser.

To  get access to all levels in Chrome Angry Birds, just copy and paste the following line into your browser’s address bar.

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

Now, to set all levels to locked, simply copy and paste this into your address bar:

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

Read this blogpost to know how he did this !

  • kurtextrem

    Isn’t working for me…
    I’m a Javascript Developer, so I fixed the code
    javascript:var i = 0; while (i<=69) { localStorage.setItem('level_star_'+i+'3'); i++; } window.location.reload();

    But when I used this, an error came up and I had to clear my LocalStorage (All Highscores etc away)
    So I wouldn't use it!

    • Dinu

      do you think its an error copying the code from the other blog ?

      • kurtextrem

        Yes and no. False ‘ are from copying… and the other mistake is on the original blog too

        • Dinu

          hmm ok :) good to have some developer friends around :)

    • fajslmakr

      Actually, you half fixed it and half broke it… the second “+” in ‘level_star_’+i+’3’ should be a “,” as in:

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

      • kurtextrem

        Ah thx, i didn’t seet that… :)

  • James

    Is this site featured on Angry Birds? I knew they would have Chrome-inspired levels, but is the writing shown on the game?

    • Dinu

      oh, I was trying to add a watermark, but ended up with red letters !!
      sorry for the misunderstanding ..