Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Safari sure is scriptable, apple released there own scripts for it when the beta came out.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.