This script attempts to uncheck the 'trust this device' option that is enabled by default when signing into a Google account with 2FA enabled. Thanks to Gonçalo for the 2019 update.
< 脚本 Uncheck 'trust this device' for Google login - 2019 edition 的反馈
Heya, thanks for the info, I updated the script accordingly. :)
Variable change
It seems that there was an update and the label name has change to: toggle-c0
To make the script work I changed line 19 to: var chkbox = document.querySelector('[aria-labelledby="toggle-c0"]');