Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save gabrielfin/eacb1d2964bbb46069818fe425cd916f to your computer and use it in GitHub Desktop.

Select an option

Save gabrielfin/eacb1d2964bbb46069818fe425cd916f to your computer and use it in GitHub Desktop.
Workaround for Bitwarden auofilling password inputs with autocomplete='new-password'
// ==UserScript==
// @name Bitwarden autocomplete workaround
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant none
// @version 1.0
// @author -
// @run-at document-end
// @description 07/05/2025, 15:09:39
// ==/UserScript==
document.querySelectorAll("[autocomplete]").forEach(input => {
input.setAttribute('x-autocompletetype', input.getAttribute('autocomplete'));
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment