Created
May 31, 2020 15:45
-
-
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.
This file contains hidden or 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
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