function jumpToToday() {
  var todayMatches = document.querySelectorAll(".match.today-ish:not(.filter-no-match)");
  var lastToday = todayMatches[todayMatches.length - 1];

  if(lastToday) {
    var filtersHeight = document.getElementById("filters-wrapper").clientHeight;
    window.scrollTo(0, lastToday.offsetTop - filtersHeight);
  }
  else {
    window.scrollTo(0, 0);
  }
}

document.addEventListener("DOMContentLoaded", function(event) {
  document.querySelector("a#today").addEventListener("click", function(event) {
    event.preventDefault();
    jumpToToday();
  });

  document.querySelector("a#top").addEventListener("click", function(event) {
    event.preventDefault();
    window.scrollTo(0, 0);
  });

  document.querySelector("a#end").addEventListener("click", function(event) {
    event.preventDefault();
    document.body.scrollIntoView(false);
  });

  setTimeout(jumpToToday, 0);
});
function jumpToToday() {
  var todayMatches = document.querySelectorAll(".match.today-ish:not(.filter-no-match)");
  var lastToday = todayMatches[todayMatches.length - 1];

  if(lastToday) {
    var filtersHeight = document.getElementById("filters-wrapper").offsetHeight;
    window.scrollTo(0, lastToday.offsetTop - filtersHeight);
  }
  else {
    window.scrollTo(0, 0);
  }
}

document.addEventListener("DOMContentLoaded", function(event) {
  document.querySelector("a#today").addEventListener("click", function(event) {
    event.preventDefault();
    jumpToToday();
  });

  document.querySelector("a#top").addEventListener("click", function(event) {
    event.preventDefault();
    window.scrollTo(0, 0);
  });

  document.querySelector("a#end").addEventListener("click", function(event) {
    event.preventDefault();
    document.body.scrollIntoView(false);
  });

  setTimeout(jumpToToday, 0);
});
Use offsetHeight instead of clientHeight as it's more technically correct
Use offsetHeight instead of clientHeight as it's more technically correct
