Delete all google stored passwords

on Stefano Chiodino

How to delete all the passwords stored in Google passwords https://passwords.google.com
#google #security #password #programming

I was trying to delete all the passwords stored in google at Google passwords, way too many to do manually!

Couldn't find a solution online so here is my easy one:

1// Gets all the elements to be clicked to delete the passwords.
2var a = document.getElementsByClassName(dga)
3// Click all the elements.
4for(i=0; i < a.length; i++){a[i].click();}