Allow the user to set your extension as a default page for new tab

So I have been looking around and I can’t seem to find the right way in doing this. I know you can set new_tab_override in the manifest but thats bundled and can’t be changed afterwards? I am looking for some pointers in having like a settings button that when clicked it would open my extension as default.

Thanks.

They’ve added option to change that in the settings some time ago, it’s also part of the Firefox ESR 91.

Thank you for your answer, however I am looking for a way to update New Tabs from my extension. I know there are other extension where you get to customize new tab behavior but not sure where to look

I don’t think there is a better way, check for example “New tab override” addon which also uses manifest “chrome_url_overrides” and then while his page loads it can redirect it to where user set it:
https://github.com/cadeyrn/newtaboverride/blob/master/src/manifest.json
https://github.com/cadeyrn/newtaboverride/blob/master/src/js/core/newtab.js

There are also some “unforeseen consequences” when not using the manifest file, like the addressbar not being empty plus not being focused.

Thanks for your responses. Much appreciate.