title: Replace lots of old links on a site with new links? (client side)
body: <p>We are currently migrating articles from our old CMS to our new CMS. The problem is that the links in the old articles are hard-coded and are referencing to the old sites. </p>
  
  <p>We migrators have no access to the database, so all articles and all links have to be changed manually.<br>
  I have the old sitemap and the new sitemap and would like to write a Greasemonkey/jQuery-script to click a button and the script would change all old-cms-links to the new-cms-links.</p>
  
  <p>What would be the best/most elegant solution in this case? Working with arrays? There are 500+ sites/articles... </p>
  
  <p>What would you suggest keeping in mind, that only client-side scripts are allowed?</p>
  
  <p>Currently I have this little snippet, that marks all old links with a ! </p>
  
  <pre><code>$("#links").click(function() 
  {
      $('a[href*="pattern-of-old-cms"]')
          .append('&lt;span class="attention" style="font-size: 25px; color:red;"&gt;!&lt;/span&gt;');
  });
  </code></pre>