Safari AdBlock blocks ads in Safari. It is free of charge and under the GPL license. Safari AdBlock is meant to be extremely simple to use: there is nothing to configure, no filter list to manage, no regular expression, it just works out of the box!
For when Java plugins aren't working in Safari or Firefox, look in ~/Library/Preferences/com.apple.LaunchServices.plist. Open it up in Property List Editor<sep/>