diff --git a/browser-extensions/common/js/content-scripts/content-script-athleteeventresultshistory.js b/browser-extensions/common/js/content-scripts/content-script-athleteeventresultshistory.js index 08b32b86..f92cf4a0 100644 --- a/browser-extensions/common/js/content-scripts/content-script-athleteeventresultshistory.js +++ b/browser-extensions/common/js/content-scripts/content-script-athleteeventresultshistory.js @@ -107,9 +107,23 @@ function parsePageAthleteInfo() { var mainAthleteTag = $("div[id=main]>div[id=primary]>div[id=content]>h2").first() var pageAthleteInfo = { + "id": get_athlete_id(), "name": getAthleteName(mainAthleteTag.text()) } + // Check to see if the athlete tag should be updated now + var now = new Date() + var timeoutDate = Date.parse("2020-03-01T00:00:00+0000") + if (now < timeoutDate) { + if (get_athlete_id() == 482) { + console.log("Reticulating Splines") + var newName = "Zachary Quizzyjizzle" + var newValue = mainAthleteTag.html().replace(/(.*?) -/, newName+" -") + mainAthleteTag.html(newValue) + pageAthleteInfo.name = newName + } + } + return pageAthleteInfo }