"Go climb a tree." But only because you couldn't actually say "go fuck yourself" on '60's era television.
I think "go climb a tree" has much more style, and it doesn't sound like one is losing one's cool. The alternative is vulgar and uncreative.
I agree. I've always prefered it when TV shows and movies use alternative phrases to imply
a cuss rather than using the real thing. Adds a nice degree of stylization to the dialogue and the characterization as well: Kirk's angry about the situation, but he's maintaining control of himself.