To that end, I've started a project: https://github.com/AlexVallat/FirefoxInlineOptions to provide a similar service to WebExtensions. Instead of writing an HTML page from scratch and wiring it up to browser.storage.local, you can simply declaratively state your settings in a js object, and have them shown in a similar style to the old Inline Options UI:
Code: Select all
const optionsConfig = [ {
key: "1",
title: "Boolean no description",
type: "boolean",},
{ key: "2",
title: "Boolean with a description",
type: "boolean",
description: "A description",},
{ key: "3",
title: "Integer",
type: "integer",
description: "A description",},
etc...
I haven't added support for the old colour picker or file/directory picker controls that were available, but that could be done in the future if required. Pull requests welcome.