diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8a7f121a4..7a85a4a2a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,11 +25,11 @@ jobs: - name: Sign WebExtension run: npx web-ext sign - continue-on-error: true env: WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} - WEB_EXT_ID: ${{ secrets.WEB_EXT_ID }} + WEB_EXT_APPROVAL_TIMEOUT: 0 + WEB_EXT_CHANNEL: listed chrome: name: Chrome runs-on: ubuntu-latest diff --git a/docs/Chapter 4.2 - Feature modules.md b/docs/Chapter 4.2 - Feature modules.md index 94f2f17c0..94d092626 100644 --- a/docs/Chapter 4.2 - Feature modules.md +++ b/docs/Chapter 4.2 - Feature modules.md @@ -1,16 +1,16 @@ # Feature modules -Each module is required to export at least two async functions. +Modules may export any of the following: ## `main()` - Type: Async Function -- Required: Yes +- Required: No The main function of the feature. Will be called whenever the user enables the feature, even if the tab(s) XKit is running in is/are not focused. Will also be called upon pageload if the script is enabled. ## `clean()` - Type: Async Function -- Required: Yes +- Required: No The cleanup function of the feature. Called whenever the user disables the feature, also regardless of tab focus. @@ -24,4 +24,10 @@ The preference-handling code of the feature. Added as a `browser.storage.onChang - Type: Boolean - Required: No -Whether the feature has a stylesheet. If true, there should be a `.css` file of matching name in the same directory level. The stylesheet is automatically added and removed during the feature's lifecycle. +Whether the feature has a static stylesheet. If true, there should be a `.css` file of matching name in the same directory level. The stylesheet is automatically added and removed during the feature's lifecycle. + +## `styleElement` +- Type: HTMLStyleElement +- Required: No + +An HTML `