This extension allows you to add custom macros
MyFitnessPal Extension Extension
Save your own custom macros by grams.
After install, click on the MyFitnessPal logo (top-right of Chrome or hidden in the puzzle piece icon) and add in your macros by grams then click save. Refresh your food diary if you're already on it and your macros should appear. Your total calorie goals for the day will be updated also. This won't change MFP on your phone app.
Read more
After install, click on the MyFitnessPal logo (top-right of Chrome or hidden in the puzzle piece icon) and add in your macros by grams then click save. Refresh your food diary if you're already on it and your macros should appear. Your total calorie goals for the day will be updated also. This won't change MFP on your phone app.
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "name": "MyFitnessPal Extension", "version": "2.0.0", "description": "This extension allows you to add custom macros", "permissions": [ "storage" ], "host_permissions": [ "https://www.myfitnesspal.com/food/diary*" ], "manifest_version": 3, "action": { "default_icon": { "16": "icon.png", "24": "icon.png", "32": "icon.png" }, "default_title": "MyFitnessPal Extension", "default_popup": "popup.html" }, "content_scripts": [ { "matches": [ "https://www.myfitnesspal.com/food/diary*" ], "css": [ "bootstrap.min.css" ], "js": [ "jquery-2.1.4.min.js", "bootstrap.min.js", "contentscript.js" ] } ]}
Read more