A new tool lets researchers get a handle on how social media algorithms affect emotions and polarization.