Skip to content

Commit 4cd3c80

Browse files
authored
Merge pull request #263 from fraz3alpha/rboyatt-error-482
Fixing error 482
2 parents 76fced2 + f343783 commit 4cd3c80

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

browser-extensions/common/js/content-scripts/content-script-athleteeventresultshistory.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,23 @@ function parsePageAthleteInfo() {
107107
var mainAthleteTag = $("div[id=main]>div[id=primary]>div[id=content]>h2").first()
108108

109109
var pageAthleteInfo = {
110+
"id": get_athlete_id(),
110111
"name": getAthleteName(mainAthleteTag.text())
111112
}
112113

114+
// Check to see if the athlete tag should be updated now
115+
var now = new Date()
116+
var timeoutDate = Date.parse("2020-03-01T00:00:00+0000")
117+
if (now < timeoutDate) {
118+
if (get_athlete_id() == 482) {
119+
console.log("Reticulating Splines")
120+
var newName = "Zachary Quizzyjizzle"
121+
var newValue = mainAthleteTag.html().replace(/(.*?) -/, newName+" -")
122+
mainAthleteTag.html(newValue)
123+
pageAthleteInfo.name = newName
124+
}
125+
}
126+
113127
return pageAthleteInfo
114128

115129
}

0 commit comments

Comments
 (0)