Not long ago I directed my readers (that's you) to a well detailed hack to tell the Weather widget that ships with Dashboard to show you the last time it updated. That solved one of my two big problems with the widget.
The other problem was a little bit more confusing. For longer city names, such as mine, I found it far more difficult to locate the clickable sweet spot on the city name that was linked to the AccuWeather website. Then I had an idea. It's just HTML and JavaScript, right? Well why not make something else clickable?
It seemed to me that the next logical thing to make clickable was the temperature. I looked through Weather.html and found a line that read:
<div id='temperature'>--</div>
I altered that line to read:
<div id='temperature' onclick='goToAccuWeather(event);'>--</div>
After opening a new copy of the Widget I found the temperature to be clickable.
Please remember, backups are your friend. As was suggested in the original hint, I recommend that you make a copy of Apple's original widget (found in /Library/Widgets) in your own local widget directory (~/Library/Widgets). The one in your home directory will replace the default one in the Dashboard bar, and you will have a pristine backup just incase.
Leave a comment