In a website, there is a js file like:
<script src="/somescript.js"></script>
somescript.js includes:
<script>
function hi(){alert('Hi');}
function sup(){alert('Sup!');}
hi();
sup();
</script>
When I enter the index page, my browser automatically runs the function hi()
How can I prevent browser to run the function hi() or change it into something i want.
Website is not mine.
Thanks
somescript.jsentirely, but I don't think it can selectively deactivate parts of it.