Skip to content

Instantly share code, notes, and snippets.

@cahva
Last active October 16, 2020 11:29
Show Gist options
  • Save cahva/2cf99f96abcfbb6a33921e55a2bf5fc2 to your computer and use it in GitHub Desktop.
Save cahva/2cf99f96abcfbb6a33921e55a2bf5fc2 to your computer and use it in GitHub Desktop.
Sets the autocomplete off on registration page
<script src="https://getvideosync.com/js/vs-helpers.js"></script>
<script>
var url = window.location.href;
if (url.indexOf('/register') > -1) {
waitForElement('.register-form', function(el) {
el.setAttribute('autocomplete', 'off')
});
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment