File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
browser-extensions/common/js/content-scripts Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments