Showing monthly as default in pricing block

Some folks want to show monthly as a default price in pricing block and the code below does it when it’s added to the page settings custom code header area

<script>
document.addEventListener("DOMContentLoaded", function() {
    $('.switch_1').click();
});
</script>