Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Check for future-posted articles via JavaScript Web Browsers
Many news sites post the next day's contributor columns several hours before providing a link on the website. Since these typically use a standard, date-based URL, I've created JavaScript bookmarks that automatically update to check if tomorrow's column has been posted.

For example, the following bookmark will check to see if David Pogue's latest State of the Art column has been posted. (Since his feature runs every Thursday, the bookmark will pull up his next column when it's posted on Wednesday afternoon/evening). The standard URL format for his column is:
http://www.nytimes.com/YEAR/MONTH/DAY/technology/personaltech/DAYpogue.html
So my JavaScript bookmark looks like this:
javascript:d=new Date();window.open("http://www.nytimes.com/"+d.getFullYear()+"/0"+(d.getMonth()+1)+"/"+(d.getDate()+1)+"/technology/personaltech/"+(d.getDate()+1)+"pogue.html", "_self");
Create a new bookmark, give it a name (Latest State of the Art) and enter the above code for the URL. For other sites, simply replace the year in the URL with +d.getFullYear()+, the month with +(d.getMonth()+1)+ and the day with +(d.getDate()+1)+. Make sure to wrap the other parts of the URL in quotes, as seen above.
    •    
  • Currently 1.17 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[6,044 views]  

Check for future-posted articles via JavaScript | 4 comments | Create New Account
Click here to return to the 'Check for future-posted articles via JavaScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Check for future-posted articles via JavaScript
Authored by: DeltaTee on Aug 05, '08 10:53:59AM

This hint seems like it still needs a bit more work since I find it unlikely that a blog would use months numbered 010, 011, or 012.



[ Reply to This | # ]
Check for future-posted articles via JavaScript
Authored by: ccase on Aug 05, '08 11:28:19AM

Yeah, it will also fail on 2008/013/32.



[ Reply to This | # ]
Check for future-posted articles via JavaScript
Authored by: smitty97 on Aug 05, '08 12:34:48PM

True, but I'm sure you could find something better to do on New Years Eve!



[ Reply to This | # ]
Check for future-posted articles via JavaScript
Authored by: mistersquid on Aug 05, '08 02:36:38PM

I suppose if you're really trying to jump the gun on on link publishing this hint is the real deal.

If you're not in that much of a rush to beat the masses, RSS feeds allow for automatic checking.



[ Reply to This | # ]