I have the below JavaScript code
<script src="https://www.annuncigratuiti.net/reva/index.php?section=serve&id=40&keyword=agrigento&output=js"></script>
There is an image on this JS code with size. I don't have access to the source code so I can't change it.
I want to know if there is any way or a trick to force different sizes to this image inside this JS code.
I appreciate any help you can provide.
You can use custom query selector:
<script src="https://www.annuncigratuiti.net/reva/index.php?section=serve&id=40&keyword=agrigento&output=js"></script>
<script>
var adImage = document.querySelector("a>img[width='500'][height='500']");
adImage.style.height = '100px';
adImage.style.width = '200px';
</script>