Created
March 5, 2021 07:02
-
-
Save royling/aeff82a0cca9a300ba72f43c51bf8f5e to your computer and use it in GitHub Desktop.
Proceed
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
// Copy and save the script as a predefined snippet in Chrome Devtools | |
// Run it to proceed to an insecured website if blocked by Chrome | |
// See how to use snippets: https://developers.google.com/web/tools/chrome-devtools/javascript/snippets | |
(function() { | |
const link = document.querySelector('#proceed-link'); | |
if (link && link.tagName.toLowerCase() === 'a') { | |
link.click(); | |
} else if ( | |
typeof sendCommand === "function" && | |
SecurityInterstitialCommandId && | |
SecurityInterstitialCommandId.CMD_PROCEED | |
) { | |
sendCommand(SecurityInterstitialCommandId.CMD_PROCEED); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Initially, I was trying to put this into a one-click Chrome extension. But, it's not allowed, Chrome extension cannot inject scripts into
chrome-error://chromewebdata/
page. You'll get the below error: