How to connect Metamask to xDAI and other networks

Connecting to other networks with Metamask works the same every time. This guide will use xDai as an example.