title: Update the a href after page load
body: <p>I am using the <a href="https://stackapps.com/q/518/14135">Stacktack app</a> to put the summary of post on a website. But, when the stacktack load's the page, the links point to direct url to stackoverflow site, but I want to amend the href link to something else (append a number to it).</p>
  
  <p><strong>Example</strong> If I give the id of current post, the link that stacktack add to the question is the complete one</p>
  
  <pre><code>http://stackoverflow.com/questions/13212050/update-the-a-href-after-page-load
  </code></pre>
  
  <p>I want it to be the share link</p>
  
  <pre><code>http://stackoverflow.com/q/13212050/1135954
  </code></pre>
  
  <p>I am using jquery to do this as</p>
  
  <pre><code>var ele = $('h3').find('a');
  var l =ele.length;
  for(var i=0;i&lt;l;i++) {
      var toLink = ele[i].href+"/1135954" ;  /* Not exact change, but point is to update the link */
      console.log(toLink);
      $(ele[i]).attr("href",toLink);
  }
  </code></pre>
  
  <p>But this is not updating the links, as the content of the stacktack is not yet loaded. I tried to do a alert on the length.</p>
  
  <p>So, how would I be able to call this piece of code only after the stacktack has finished loading the content? </p>
  
  <p>Please let me know</p>