Yes, it's dirty, but sometimes we have to do it.
For example I'm working on a 3rd party search tool that for some odd reason allows a single custom javascript file, but no other customizations outside of their UI.
A Pen by Gabriel Luethje on CodePen.