I've attached two versions of the hack. One version has permissions, so you can let certain usergroups have the feature, and not let others. This versions has 2 more file edits, and a required query to be run.
The other version doesn't have permissions and has two less file edits, and no queries.
I attached both versions because I don't see a high demand for permissions on such a simple hack. The choice is yours.