Skip to content

Instantly share code, notes, and snippets.

hhhh
@rovolution
rovolution / ff-highest-score.js
Last active December 29, 2020 22:57
Fantasy Football: Calculates highest scoring winner from each week + total scores for the season - REGULAR SEASON ONLY - (Yahoo Fantasy Sports)
/*
Instructions:
- Log-in and navigate to your league's homepage. Make sure you are on Week 1 of the scores.
- Right-click and open Developer Tools
- Copy/paste the script contents into the Console and press enter to load the script into the page
- Execute the script within the Console by invoking the function: getScoreDataForSeason()
- Script will log in the Console when it is processing each week
- When the script is done, two tables will print to the Console: one with the top scorer for each week, another with the total scores for the entire season
*/
@rovolution
rovolution / ff-payouts.js
Last active December 25, 2018 20:35
Fantasy Football: Take the output from ff-highest-score.js and determine the payout amounts
/*
This script is used to determine the payout amounts for my fantasy football league.
The script assumes the following payout rules:
- Buy-in: $125
- Highest points per week - $15 for 16 weeks
- Highest points for entire season - $100
- 3rd: $125
- 2nd: $335
- 1st: $700
/*
Buy-in: $200
$2400 total pot
1st: $1000
2nd: $400
3rd: $200
Streak (Longest consecutive win streak): $30
Survivor (Every week the lowest-scoring team is eliminated. Winner is last one standing after week 11): $30