Surye / mfp-keto-userscript

MyFitnessPal Keto Script
164 stars 54 forks source link

Version 1.16 - Net Carbs Columns Appear, But No Values (ed: NEVER MIND - found/fixed MFP problem) #55

Closed COHikerGirl closed 5 years ago

COHikerGirl commented 5 years ago

I just downloaded the MyFitnessPal Percentages and Net Carbs script, today (February 8, 2019). 1) Some of the instructions on your webpage (URL https://perfectketo.com/myfitnesspal-net-carbs/) are out-of-date due to changes on the MFP website (in particular, (a) an additional step to get to the 'Diary Settings' page in MFP, and (b) not reflecting changes to the current TamperMonkey Version 4.8 behavior when invoked from its icon in the Chrome ribbon menu). I was able to work around the missing/misguided steps. 2) Upon installation completion, the 'Net Carbs' column appears, as expected, on the MFP 'Food Diary' page. However, the individual meal items reflect only an 'NaN' value for all items, regardless of actual NetCarb content (which causes your script to fail the if-else at line 173), and the Daily 'Totals' row in the bottom-most summary section shows a value of 0.

COHikerGirl commented 5 years ago

BTW, I do indeed have all the proper set of "Nutrients Tracked" that you cited as required ... Carbohydrates, Fat, Fiber, Protein, Potassium ... as you cited in your instructions.

COHikerGirl commented 5 years ago

I updated Chrome to the latest version available (Version 72.0.3626.96 (Official Build) (64-bit)), but the problem persists.

COHikerGirl commented 5 years ago

HA!!!! Fixed the problem ... I logged out of MFP and back in, checked all the data, and found that the "Nutrients Tracked" no longer reflected what I had saved (and what was displayed) before. I re-set it once more to the Carbohydrates, Fat, Fiber, Protein, Potassium ... as you cited in your instructions ... and VOILA the proper gram values now appear in the "Net Carbs" column. (Note that my original observation regarding outdated instructions on your download/installation webpage still apply, however.)