User:Worrida/vector.js

$(function { if (mw.config.get('wgAction') != 'history') return;  var firstDone = false;  $('#pagehistory > li').each(function { var aFirst = $("a:first", this); if (!firstDone && aFirst.text != "akt") { $(this).append(' (oldid: ' + mw.config.get('wgCurRevisionId') + ')'); firstDone = true; } else { var oHref = aFirst.attr("href").match(/oldid=(\d+)/)[1]; $(this).append(' (oldid: ' + oHref + ')'); } }); });