Updates FiveThirtyEight Elo Game Page w/~Live Scores

Latest Version

Version
2.0
Update
September 12, 2022
Size
43.98KiB
Developer
Category
Users
5
Rating
0 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
Https://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard
See more

Elo Live Score Extension

Note: Updated for 2022!

I HAVE NO CONNECTION TO FIVETHIRTYEIGHT. I didn't ask them for permission to make this. If they ask me to take it down, I am happy to do so. Please don't sue me.

FiveThirtyEight made a system for comparing your own NFL forecasts to those made by their Elo rating system. When multiple games are being played concurrently, it's a bit of a hassle to track how the teams are doing relative to what your forecasts were, so this Chrome extension was born. It pulls current game data from the ESPN API, and when you're on FiveThirtyEight's Elo game results page, it uses some (very) hacky javascript to insert the current quarter, time remaining, and score for each game that is currently live. When there is a live game, the page will refresh every minute. When there is no live game (and the page is still open for whatever reason), the page will refresh every hour. If the page isn't open in your browser, the extension will just sit idle.

The code is a hot trainwreck and doesn't have anything in the way of error handling, but the risk of trying it out is slim to none (if it doesn't work, just remove the extension). The source code is here: https://github.com/cryptogramber/Elo-Live-Score

FiveThirtyEight NFL Predictions Game: https://projects.fivethirtyeight.com/2022-nfl-forecasting-game/

Results page (where this extension works when a live game is occurring): https://projects.fivethirtyeight.com/2022-nfl-forecasting-game/results/

More information on Elo ratings: https://projects.fivethirtyeight.com/complete-history-of-the-nfl/

No usage data is collected by the extension, but it does query ESPN's API for current game stats and I have no doubt they log connection metadata on their end. The only permissions required from this extension are access to the 538 page (to show the current scores), the ability to reload the 538 page (to update), and the ability to access the ESPN API endpoint to query current scores.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "Elo Live Score", "description": "Updates FiveThirtyEight Elo Game Page w/~Live Scores", "version": "2.0", "permissions": [ "https://site.api.espn.com/apis/site/v2/sports/football/nfl/scoreboard" ], "content_scripts": [ { "js": [ "jquery.min.js", "elolive.js" ], "matches": [ "https://projects.fivethirtyeight.com/2022-nfl-forecasting-game/results/" ] } ], "background": { "scripts": [ "jquery.min.js", "background.js" ] }, "icons": { "16": "icon16.png", "48": "icon48.png", "96": "icon96.png", "128": "icon128.png", "256": "icon256.png" }}
Read more

Similar Extensions