Automatically clicks on the reject cookies button
These are versions of this script where the code was updated. Show all versions.
Switched to XPath selector since the classnames and orders keep changing.
Updated to new button YouTube classnames (for a week or so it crashed since that change).
Update v0.2: Included a check for a redirect to the consent page, where it will automatically try to click the "Reject all" button.