I want to create a mod to unlock all the crafting recipes in the game, or at least the non-quest ones.

Is there a way to have a new script run on certain events (game start and level up are what I'm thinking, or on loading the game if that's possible) without editing an existing script or object (to preserve compatibility)?

Is there a code database/array of all recipes and a way I can run through it and run CharacterUnlockRecipe for each entry (easiest and preserves compatibility with updates and mods), or would I need to write a separate line for each recipe manually?

Any help is appreciated.