$(function () { function isActionsModule(params) { return params.module == 'Actions'; } function isPageUrlReport(params) { var action = params.action; return isActionsModule(params) && (action == 'getPageUrls' || action == 'getEntryPageUrls' || action == 'getExitPageUrls' || action == 'getPageUrlsFollowingSiteSearch'); }; function isPageTitleReport(params) { var action = params.action; return isActionsModule(params) && (action == 'getPageTitles' || action == 'getPageTitlesFollowingSiteSearch'); }; function getLinkForTransitionAndOverlayPopover(tr) { tr = getRealRowIfComparisonRow(tr); var link = tr.find('> td:first > a').attr('href'); // replace all &, that are not part of a named character reference with a tailing semicolon, with a & // otherwise named character references without a tailing , (like ®) would be replaced link = link.replace(/&([a-z]+[^a-z;])/, '&$1'); link = $('