This is useful when manually checking each page on a site to the corresponding page on a replacement site, as the final check before taking the new site live.
Starting with the basic Drupal.org documentation-style JavaScript, and hacked at it: