Issue #22723: Make link styling more accessible.

Patch by Buck Golemon.
Issue #22596: support.transient_internet() now also catches
ConnectionRefusedError exceptions wrapped by urllib.error.URLError.

This change should fix sporadic failures in test_urllib2net.