Skip to content

Instantly share code, notes, and snippets.

@selincodes
Created May 31, 2020 15:45
Show Gist options
  • Save selincodes/525d52cfa8b5da8e970508115710597c to your computer and use it in GitHub Desktop.
Save selincodes/525d52cfa8b5da8e970508115710597c to your computer and use it in GitHub Desktop.
Adds a scroll in the recaptcha iframe when it does not fit on the screen.
setInterval(function () {
let $reCaptchaIframe = $('iframe[title="recaptcha challenge"]');
if ($reCaptchaIframe) {
let $reCaptchaOverlay = $reCaptchaIframe.parent();
$reCaptchaOverlay.css({
'height': '100%',
'overflow-y': 'auto',
'width': 'auto',
'background': '#fff'
});
$reCaptchaOverlay.css({
'position': 'fixed',
'height': '100%',
'top': '0px'
});
}
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment