It is now possible to create a userscript where you can add player listeners (including check if it has been initialized), set the player configuration including a persistent config.