So users who pin a site spend more time on that site? Wow, what a fantastic revelation! :p

Also, your sample code fails miserably in anything other than IE9. Non-IE users, and users of IE8 or earlier, will get a script error. Depending on your audience, you'll probably lose a fair number of visitors with this.