How to remove image on single product and get product to span page?

I added a jquery to the footer.php in the child theme. Within that I listed all the product pages I wanted to adjust the css for. This is not ideal for sites with large content, in this case there are only two products.

For the sake of larger sites, there could possibly be some wild card at the end of the url.

<?php //if(is_post()){ ?>
<script type="text/javascript">
    jQuery(function(){

        if(window.location.href=='http://mywebsite.com.au/product/myproduct/')
        {
            jQuery('.images ').remove();
            jQuery('.summary.entry-summary.portrait-screenshot ').css('width','100%');
            jQuery('.cart ').css('width','70%');
        }
    });
</script>
<?php //} ?>

error code: 523