MyFitnessPal Percentages and Net Carbs

By Surye Last update Feb 26, 2013 — Installed 40,045 times.

Script Summary: Adds display of Carb/Protein/Fat percentages to any daily food diary page. Also adds "Real Calories" calculation based off 4/4/9 algorithm. Based on "MyFitnessPal Percentages", modified by Surye to add low carb features such as net carbs. Requires the following columns: Fat, Protein, Carbs, Fiber



Version: 1.1

Created primarily for the /r/keto community on Reddit.

Remember this script REQUIRES the following columns: Fat, Protein, Carbs, Fiber!

Install:

FAQ:

Q: Food item shows up in red and says bad data?! What gives?!
A: Someone added the food item incorrectly, and put net carbs in the carbs value, and so the fiber subtracts from it, making negative carbs. Nothing I can really do about this without modifying more data than I wish to.

Q: I get NaN's in the Net Carb column!
A: It may be you didn't have all the required columns added, go to http://www.myfitnesspal.com/account/diary_settings and make sure all the columns required are there (most likely, you need to add the fiber column).