Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ratboy

macrumors member
Original poster
Feb 2, 2002
42
0
A couple of sites I routinely visit post articles online a few hours before providing a link, however, since they have a standard naming convention, it's not hard to figure out what the link is going to be. Typically, the only difference in the URLs is the date.

Is there any way to create a Safari bookmark that automatically changes a variable representing tomorrow's date?
 
For the record, here's the correct code:

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");
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.