The Manual Way to Hide / Remove reCaptcha Audio

Was trying to disable the audio option for reCaptcha, but couldn't find the official way to do so.

So in the end, I used the old-school javascript + CSS method to hide the buttons.

Hiding the buttons

Add this code snipped anywhere after the reCaptcha code.

<script type="text/javascript">
jQuery(document).ready(function(){
	document.getElementById('recaptcha_switch_audio_btn').style.display="none";
	document.getElementById('recaptcha_reload_btn').style.display="none";
	document.getElementById('recaptcha_whatsthis_btn').style.display="none";
}); 
</script>


Filling ackground color

Now  we have a empty space in the column where the buttons are. So just use CSS to replace the color.

#recaptcha_table tr {background:#dfdfdf;}


There you go, a reCaptcha with no audio option.

:)

Comments

  1. excellent, thanks for that, no more crazy audio!!

    ReplyDelete

Post a Comment

Popular posts from this blog

[Azure Websites PHP] Cross Domain request results in blank response page after Preflight HTTP OPTIONS

[Magento] Create Contact Form with Dynamic Recipient