Is there any way to make the confirmation dialog stop appearing when clearing history in Safari?
You could try the "Reset Safari" under Safari settings. Its right below Private Browsing (at least on my computer). you can uncheck everything but clear history. I tried it, and wasn't asked if i was sure I want to clear history.
My source