Would it be theoretically possible to create a block that essentially performs whatever hacks I need, without actually altering core code? For instance, I'd like it to dynamically insert a code snippet, instead of hard coding it. One advantage would be that our "hacks" could be maintained across Moodle upgrades. Another would be that I could make hacks that my server host won't let me make directly.
So I was just wondering if something like that would even be possible, before I embark on a mission to figure out how (or find someone else who does!)