News for hackers. Stuff that matters.
Re:The New Grooveshark by jimm on Thursday October 18, 2012 @06:18AM (#4668134)
I went to grooveshark.com and looked at the page for a few seconds. When I went to close the tab, a JavaScript popup asked me if I was sure that I wanted to "navigate away". Why, oh why does Grooveshark think that was useful, necessary, or a good way to treat a user?
Re:The New Grooveshark by edoloughlin on Thursday October 18, 2012 @06:25AM (#4668147)
Looks like it's to catch the case where you've got music playing and inadvertently close the tab. There should probably be a check to make sure you've actually got something playing in your queue.
Re:The New Grooveshark by cowpewter on Thursday October 18, 2012 @06:30AM (#4668158)
We do that when you have music playing and we also currently do it in the first 30 seconds of loading the page as an awful hack around some completely crappy ads that force redirects that have gotten into our ad networks. It's just in there until we can get the ad problem fixed.
Re:The New Grooveshark by mmahemoff on Thursday October 18, 2012 @06:34AM (#4668162)
I do something similar on my own site, but the difference is it only kicks in if playing has started. I think they have the right intention, but they need to add an if statement in their window.onbeforeunload hook. (Edit - I see Grooveshark said they only do it for the first 30 seconds of the site loading as a workaround.)

I haven't had any complaints about it and personally find it useful. Especially as it lets me quickly "close all right tabs" without stopping to think if I'm about to break what I'm listening to. However, these are podcasts and maybe people are less fussed about a random song stopping halfway through.