Uncheck Buttons With JavaScript

Today I used JavaScript to mass-unsubscribe from a website&rsquo;s email notifications. Here&rsquo;s the code, followed by what I did and why. document . querySelectorAll ( '[role='switch']' ) . forEach (( element ) => element . click ());