Skip to content

Instantly share code, notes, and snippets.

@royling
Created March 5, 2021 07:02
Show Gist options
  • Save royling/aeff82a0cca9a300ba72f43c51bf8f5e to your computer and use it in GitHub Desktop.
Save royling/aeff82a0cca9a300ba72f43c51bf8f5e to your computer and use it in GitHub Desktop.

Revisions

  1. royling created this gist Mar 5, 2021.
    15 changes: 15 additions & 0 deletions proceed.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    // 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);
    }
    })();