I’m leaving this here because there are a lot of devs around, and I believe it might be helpful for some. I am in the process of developing my new plugin which heavily relies on JS, so I wanted to use the power of filters and actions WordPress has, in my JS.

As a result, I’ve written this small, quite simple, but (to me) very useful script.