Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active August 26, 2021 14:11
Show Gist options
  • Save franciscocpg/7e0c2df36300373242c757a9335f99e3 to your computer and use it in GitHub Desktop.
Save franciscocpg/7e0c2df36300373242c757a9335f99e3 to your computer and use it in GitHub Desktop.
Hack to manually trigger saving password in chrome

Go to a page that has a password input element and type the code below in the browser's console:

const cred = new PasswordCredential({
  id: 'id',
  password: 'password',
  name: 'name',
});

navigator.credentials.store(cred)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment