Humble Bundle

19 Dec 2010

After seeing this thread on reddit, I thought it would be interesting to build a script to monitor the amounts people are paying for this sale. Here is a bookmarklet that when ran on that page will display those dollar amounts as they occur:

javascript:void(function(){var q=document,a=q.createElement('div'),b=q.getElementById('totalcontributed'),c=q.getElementsByClassName('totalcontributions')[0],d=0,e=0,$;a.setAttribute('style','width:400px;height:300px;position:fixed;z-index:99;border:2px solid #000;padding:10px;overflow:auto;top:0;right:0;background-color:LightGoldenRodYellow');a.innerHTML='Watching purchases...

';q.body.appendChild(a);setInterval(function(){q=parseInt(c.innerHTML.replace(/,/g,''));$=parseFloat(b.innerHTML.replace(/,|\$/g,''));if(q==e+1)a.innerHTML+='$'+($-d).toFixed(2)+', ';d=$,e=q;},1)}());

This polls the dom in a quick interval, if the number of purchases increases by exactly one then the change in total revenue is added to the list. There may be a cleaner way to use whatever library is actually doing the updating but I just wanted a quick and dirty solution.

Here's the data I got from running it for a few minutes:

$1.00, $2.00, $0.01, $15.00, $2.00, $10.00, $13.19, $15.00, $2.00, $10.00, $1.00, $7.00, $14.00, $5.00, $10.00, $0.01, $10.00, $6.50, $5.00, $1.00, $1.00, $10.00, $20.00, $15.00, $1.00, $1.00, $1.00, $5.00, $5.00, $10.00, $13.00, $22.50, $10.00, $5.00, $1.00, $2.00, $0.20, $1.00, $5.00, $10.00, $10.00, $1.00, $10.00, $10.00, $12.00, $10.00, $1.00, $3.00, $1.00, $10.00, $15.00, $20.00, $5.00, $5.00, $4.00, $20.00, $0.01, $3.00, $5.00, $35.00, $10.00, $6.00, $1.00, $10.00, $0.01, $5.00, $7.00, $1.00, $14.15, $0.10, $0.01, $5.00, $25.00, $10.00, $5.00, $1.00, $10.00, $20.00, $2.00, $1.00, $10.00, $13.75, $12.00, $2.00, $1.00, $7.50, $1.00, $5.00, $1.00, $2.00, $1.00, $5.00, $20.00, $1.00, $0.01, $5.00, $1.00, $5.00, $1.00, $10.00, $10.00, $10.54, $0.02, $5.00, $0.10, $1.00, $2.00, $1.00, $25.00, $1.00, $0.10, $15.00, $0.01, $15.00, $2.00, $0.50, $5.00, $1.00, $10.00

The most useful data might come from a 24 hour survey, as that should remove the geographical skew that results from different timezones. I felt it'd be better to share this before waiting so long, maybe someone else will publish some graphs based on more data, could be interesting.