Add JSON definition subscriptions
This commit is contained in:
parent
7e17470356
commit
bedeb8495d
15 changed files with 321 additions and 37 deletions
|
|
@ -9,7 +9,7 @@ VibeGuard is a local-first browser extension that hides toxic social-media posts
|
|||
- Optional toxicity scores on filtered-post placeholders.
|
||||
- Declarative site definitions with URL patterns, selectors, and stable identifiers.
|
||||
- Built-in support for the official Mastodon web interface.
|
||||
- Import and export of custom site definitions as JSON.
|
||||
- Versioned JSON definition collections with weekly subscriptions and manual refresh.
|
||||
- Toolbar popup with current-site status, matched definition, pause/resume control, and settings access.
|
||||
- Firefox Manifest V2 and Chromium Manifest V3 builds.
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ Preparation writes the Transformers.js-compatible files and `model-manifest.json
|
|||
|
||||
If the model uses generic labels such as `LABEL_0` and `LABEL_1`, pass `--toxic-index` and `--non-toxic-index` to `prepare`; the command refuses to guess an ambiguous mapping.
|
||||
|
||||
VibeGuard injects a lightweight content script on ordinary web pages, but reads and processes content only when a validated site definition matches the page. The extension includes a definition for the official Mastodon web interface; custom definitions and overrides are managed as JSON in the options page. Definitions are declarative selectors and URL patterns, never executable code.
|
||||
VibeGuard injects a lightweight content script on ordinary web pages, but reads and processes content only when a validated site definition matches the page. The extension includes a bundled definition collection for the official Mastodon web interface. The default subscription follows the repository's raw JSON collection and refreshes weekly, while the bundled copy remains available offline. Additional JSON subscriptions, local overrides, and disabled definitions are managed in the options page. Definitions are declarative selectors and URL patterns, never executable code.
|
||||
|
||||
## Runtime architecture
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ The model is loaded once by the shared inference backend for each browser contex
|
|||
|
||||
## Options page
|
||||
|
||||
Open the extension’s options page to change the threshold, filtering mode, and score display. The Site definitions section accepts a JSON object containing `customDefinitions` and `disabledDefinitionIds`. Definitions can be imported from or exported to a file, and are validated before they are saved.
|
||||
Open the extension’s options page to change the threshold, filtering mode, and score display. The Site definitions section manages JSON subscriptions, which refresh automatically once per week and can also be refreshed manually. Local overrides can be imported from or exported to JSON and are validated before they are saved. A failed or invalid subscription update leaves the last-known-good definitions active.
|
||||
|
||||
The options page uses the locally bundled [Bulma CSS](https://bulma.io/) v1.0.3 stylesheet. No options-page styling or runtime dependency is loaded from a CDN.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue