|
|
A bookmarklet version
Doing this as CGI... possible, but I doubt it would be much simpler (at least in terms of setup) than the OP's code.
But a bookmarklet does sound simple, so here goes: First, I had to figure out what URL the OP was looking at. Turns out that wunderground (the name has some interesting history) uses 4 letter airport codes, so IAD is KIAD. An example: http://www.wunderground.com/history/airport/KIAD/2010/1/1/MonthlyHistory.html We'll put the airport code up front to make it easy to change, and determine the date portion of the URL:
I ran it through something to crunch it into a bookmarklet online. (It also wrapped it in a function, which is useful.) The end result seems to get cut off:
On Firefox, you could use (new Date()).toLocaleFormat("%Y/%m/%d") to get the date formatted in one shot and eliminate the function() wrapper, but that's non-standard and neither Safari nor Chrome understand it. It would look like this:
In both cases, remove the newline before you paste it into your bookmarks.
A bookmarklet version
You rock for going to the trouble to do that! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.58 seconds |
|