Keyboard Macro that toggles one safari extension on and off

I have a couple of safari extensions that help me limit the content that I get on YouTube and reddit, the mission critical one being Focus for YouTube. I some times turn it off, I want to generate a macro to toggle the extension back on whenever I unlock my computer