That was just my auth flow code; the code for the Extension itself is here:
https://github.com/Megachile/Phenology/tree/main/inathelperJS
I am a novice coder myself; I’ve built some small tools in R but this is the first time I’ve ever used javascript at all. GPT4 actually wrote the code; I just assembled it and tested etc.