I have looked for the past couple of days, for a way to implement this, without an extension, since that will not work in headless mode. I have tried some different approaches,