hi5 shoving ads in your face
I have to admit that I have a small addiction to farming games. I tried out Farmville on Facebook and now I’m losing time with Barn Buddy on hi5.
Anyway, in order to get to your farm, you must wait a few seconds for the application to load. But the application is in flash and there is no flash visible yet. So what exactly is it loading?
Well… nothing exactly. It’s just waiting for the ad to display for 5 seconds so then we can move on to the actual preloader included in the SWF. Here’s the exact Javascript from the page:
function InitGame() {
try {
startGame();
} catch (err) {
}
}
var timer = 5;
var adControlled = false;
function atrDefaultInitGame() {
adControlled = true;
ShowTime();
}
function atrGetControl() {
adControlled = true;
}
function checkInitGameUnderControl() {
if (!adControlled) {
showPlayNowMessage();
}
}
// test if after 5 seconds no ad has explicitly made
responsible of showing the init game link
// also, in case after 10 secs the ad hasn't finished,
show the init game link
setTimeout(checkInitGameUnderControl, 5 * 1000);
setTimeout(showPlayNowMessage, 10 * 1000);
...
Yup, do check those comments right there.
3 Comments to “hi5 shoving ads in your face”
Leave a Reply

do you meed LOSING time? :*
*mean
You’re hilarious.