function addSinceLinks() {
  var ul = document.getElementById("contentSub").nextElementSibling.nextElementSibling.nextElementSibling.nextElementSibling;
  for(i=0; i<ul.children.length; i++) {
    h = ul.children.children.text ? ul.children.children : ul.children.children;
    pipe = document.createTextNode("\u00a0| ");
    cur = ul.children.children.cloneNode(true);
    cur.href = cur.href.concat("&diff=cur");
    cur.text = "cur";
    ul.children.insertBefore(cur,h);
    ul.children.insertBefore(pipe,h);
  }
}

if (mw.config.get('wgCanonicalSpecialPageName') == 'Contributions' && mw.config.get('wgAction') == 'view')
  mw.util.addPortletLink('p-cactions', 'javascript: addSinceLinks()', '+cur', 'ca-addcur',
                 "Add links to see the changes since your laste edit", '');