I also needed this feature and did a pretty much identical implementation.
Would be nice to have it included officially, this is very useful.
Searching around the net, I can see people requesting a way to do this for a long time. It’s still not possible to have it with the latest Unity timeline. Having access to the source and being able to change it quickly is fundamental.