This script searches for every link on the page, finds any that contain Google URLs and scans for the search term(s). It then re-writes the links in a simplified form without all the extra googlecruft. It should skip over any non-Google links or any Google links without search terms.