Skip to content

Instantly share code, notes, and snippets.

@toddmotto
Created May 6, 2014 14:53
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 toddmotto/ce1023cb755b31210563 to your computer and use it in GitHub Desktop.
Save toddmotto/ce1023cb755b31210563 to your computer and use it in GitHub Desktop.
Debunking the British Gas paste event
var input = document.querySelector('input[type=password]');
var britishGasPasteHandler = function () {
if (window.certificate) {
certificate.revoke();
}
};
input.addEventListener('paste', britishGasPasteHandler, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment