Green’s Dictionary of Slang

god-damned adj.

1. [17C+] a general intensifier, lit. ‘most damnable’; thus superlative god-damn(e)dest.

2. [1950s+] a positive term of admiration; usu. as god-damnedest.