A temporary workaround solution for injecting JavaScript code at page initialization since page.add_init_script() doesn't work: In Camoufox, all of Playwright's JavaScript runs in an isolated context.
Create a Javascript (ES6) project scaffolding with grunt-init. This is intended to help with learning ES6. Sample files are included that demonstrate how Backbone can be written in ES6. If you haven't ...