diff options
-rw-r--r-- | chrome/browser/resources/ssl_error.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/resources/ssl_error.html b/chrome/browser/resources/ssl_error.html index 6326156..e0afc0f 100644 --- a/chrome/browser/resources/ssl_error.html +++ b/chrome/browser/resources/ssl_error.html @@ -92,11 +92,27 @@ input { $("twisty_closed").style.display = "inline"; } } + + // This allows errors to be skippped by typing "proceed" into the page. + var keyPressState = 0; + function keyPressHandler(e) { + var sequence = "proceed"; + if (sequence.charCodeAt(keyPressState) == e.keyCode) { + keyPressState++; + if (keyPressState == sequence.length) { + sendCommand(1); + keyPressState = 0; + } + } else { + keyPressState = 0; + } + } </script> </head> <body oncontextmenu="return false;"> <script> document.addEventListener('DOMContentLoaded', setDirectionSensitiveImages); +document.addEventListener('keypress', keyPressHandler); </script> <div class="background"><img src="ssl_roadblock_background.png" width="100%" height="100%" alt="background" onmousedown="return false;"></div> <table width="100%" cellspacing="0" cellpadding="0"> |