20 November 2006

Successful camping out for the Wii

And by 'camping out' I mean 'sleeping next to my computer with the sound turned way up':

// ==UserScript==
// @name           WiiNotifier
// @namespace      http://www.amazon.com/
// @description    Make some noise if the Wii 
//                 appears to be available
// @include        http://www.amazon.com/Nintendo-Wii/dp/B0009VXBAQ
// ==/UserScript==

(function() {
  if (document.body.innerHTML
      .indexOf("This item is currently not available.") 
      == -1) {
    unsafeWindow.location.href =
      "file:///G:/Music/Ministry%20Of%20Sound%20-"
      + "%20The%20Annual%202007/CD1/09%20-%20Benassi"
      + "%20Bros%20-%20Feel%20Alive.mp3";
  } else {
    unsafeWindow.setTimeout("window.location.reload()",
                            6000 + Math.random()*8000);
  }
})();

The only issue was that after it woke me up, I couldn't immediately get to the Amazon page because the script kept detecting that the Wii was available and so kept redirecting to the MP3. My brain was still booting at the time, so it took a few precious seconds to figure out how to disable the script ('precious seconds' is right - the page now says that they sold out in less than a minute).

After both BestBuy and RadioShack cancelled my preorders for the Wii and PS3, I was a bit skeptical of any store selling them, so I ordered from a few, and now it looks like I have two Wiis on the way. Oh DARN!

No comments: