Created
May 6, 2014 14:53
-
-
Save toddmotto/ce1023cb755b31210563 to your computer and use it in GitHub Desktop.
Debunking the British Gas paste event
This file contains 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
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