1
0
Fork 0
firefox/toolkit/components/ml/docs/extensions-api-example
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
alt-text-modal.css Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
alt-text-modal.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
background.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
contextmenu-shim.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
icon.png Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
manifest.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.rst Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
settings.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
settings.js Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00

Trial Inference API Extension Example
=====================================

This web extension implements an alt text feature on any image in the browser.
You can right click on the image and you will get an alt text generated by
an `image-to-text` model.

See the :ref:`WebExtensions AI API for reference <WebExtensions AI API>`.

Installation
------------

1. Go into `about:debugging` > `This Nightly` > `Load Temporary Add-on`
2. Go into the directory containing the extension (`toolkit/components/ml/docs/extensions-api-example`).
3. Pick `manifest.json` and load it.
4. Once the extension is loaded, go into `about:addons` and enable the optional permission.


Usage
-----

In a web page with images, right-click on an image then chose "Generate ML description".
The first time you will use it, the model will be downloaded from our servers and
you will get a download progress.


Manifest
--------

See the :searchfox:`extensions-api-example's manifest.json file <toolkit/components/ml/docs/extensions-api-example/manifest.json>`.