Created
March 21, 2024 21:03
-
-
Save acoyfellow/9a4abea17b7fad8010fee658640dc422 to your computer and use it in GitHub Desktop.
disable autofill
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
var forms = document.getElementsByTagName('form'); | |
for(var i = 0; i < forms.length; i++) { | |
var fields = forms[i].getElementsByTagName('input'); | |
for(var j = 0; j < fields.length; j++) {fill | |
fields[j].setAttribute('autocomplete', 'off'); | |
} | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment