Is it possible to look at a page's source code, find a certain part and replace it with something else before the page loads? I would like to accomplish this using JavaScript so that I can use it in a Chrome extension. So something like this:
Find the google.com
<script type="text/javascript">
var URLgo = "http://google.com";
</script>
Replace with yahoo.com
<script type="text/javascript">
var URLgo = "http://yahoo.com";
</script>