Skip to content

Commit

Permalink
Merge pull request #263 from fraz3alpha/rboyatt-error-482
Browse files Browse the repository at this point in the history
Fixing error 482
  • Loading branch information
fraz3alpha authored Feb 20, 2020
2 parents 76fced2 + f343783 commit 4cd3c80
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down

0 comments on commit 4cd3c80

Please sign in to comment.