Skip to content

Instantly share code, notes, and snippets.

@Nemo64
Created June 19, 2020 09:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nemo64/b02f1ca704fb5b65ed625883c038283c to your computer and use it in GitHub Desktop.
Save Nemo64/b02f1ca704fb5b65ed625883c038283c to your computer and use it in GitHub Desktop.
a script you can execute to delete all password in chrome. You may need to run it multiple times due to timing issues.
// $0 = <password-list-item> so you'll need to pick that element in your browser first
// then execute this script until your password list is empty (there is a timing issue but after about 3 tries the password list is empty)
$0.parentNode.querySelectorAll('password-list-item').forEach(item => {
item.shadowRoot.querySelector('#passwordMenu').click();
item.parentNode.parentNode.parentNode.querySelector('#menuRemovePassword').click();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment