Pandora Time Out Annoyances? The 1991-style workaround.

I usually don’t stray off the .NET path too much but…I listen to Pandora a lot.  I also happen to be a nutcase that listens to music throughout the entire night.  Well, if you ever listen to Pandora you know that after an hour it times out…and that can be pretty damn annoying even if all you have to do is go find the tab within FireFox that Pandora is living in and click a button.

In any case, I created a really old-skool workaround for this.  There are probably 900 ways to do this (another one that comes to mind that is probably easier is just using a META-REFRESH)…all I did was create a local HTML document with a frame src=”pandora.com” and a JavaScript SetTimeOut function call.  Basically, it will refresh the page after 60 minutes.  Just copy and paste the code below, call it something.html (Ex: Pandora.html) and double-click.  After an hour, it will refresh…the end.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE></TITLE>
<script type="text/JavaScript">
   1:  
   2: <!--
   3: function timedRefresh(timeoutPeriod) {
   4:     setTimeout("location.reload(true);",timeoutPeriod);
   5: }
   6: //   -->
</script>
</HEAD>
<!--
3600000 = 60 min in milliseconds    
 --> 
<FRAMESET cols="99%, 1%" onload="timedRefresh(3600000);">
  <FRAMESET rows="500, 1">
      <FRAME src="http://pandora.com/">
  </FRAMESET>
</FRAMESET>
</HTML>

Share this post :

 

Print | posted @ Wednesday, May 20, 2009 1:44 PM

Comments on this entry:

Gravatar # re: Pandora Time Out Annoyances? The 1991-style workaround.
by Steve at 6/2/2009 12:28 AM

You sir, are a hero. A true hero. I applaud you greatly.
Gravatar # re: Pandora Time Out Annoyances? The 1991-style workaround.
by Rob at 8/26/2009 4:36 PM

You are a magical wizard whom I also applaud!
Gravatar # re: Pandora Time Out Annoyances? The 1991-style workaround.
by Eric at 9/9/2009 6:05 PM

So simple a CEO can do it LOL

Great Job, thanks!
Gravatar # re: Pandora Time Out Annoyances? The 1991-style workaround.
by kevin at 9/22/2009 3:12 PM

i assume that i could just change the value to 18000000 to give it a 5 hour refresh since i have ugraded to pandora one?
Gravatar # re: Pandora Time Out Annoyances? The 1991-style workaround.
by SanjayU at 9/22/2009 3:16 PM

Hi Kevin,
That is correct!
Gravatar # re: Pandora Time Out Annoyances? The 1991-style workaround.
by StevenPol at 10/13/2009 12:48 PM

I think I am denser than most, because it is not working for me. Followed the instructions, but get an error on IE
Line: 35
Char: 1
Error: Object expected
Code: 0
URL: file//c:\pandora.html

Any ideas?
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 
Twitter