TIL is my collection of short, technical daily learnings. 247 and counting.
Uncheck Buttons With JavaScript
Today I used JavaScript to mass-unsubscribe from a website’s email notifications. Here’s the code, followed by what I did and why. document .querySelectorAll('[role="switch"]') .forEach((element) => element.click()); ...