Skip to content

Web Extension built using `vitesse-webext` template by @antfu. WavE Image Downloader is a browser extension that showcase the images in the active site and allows you to download them.

License

Notifications You must be signed in to change notification settings

Dawntraoz/wave-image-downloader

Repository files navigation

"WavE Image Downloader" web extension sample

WavE Image Downloader is a browser extension, created for the talk "El poder de las Web Extensions", that showcase an image grid for the active tab webpage and allows you to select and download them.

WavE Image Downloader screenshot

This Web Extension was built using vitesse-webext template by @antfu.

Features

Shared options

Adds a dynamic name at the header of the Popup by creating an option with the useWebExtensionStorage composable.

Header with name screenshot

Image selector

An image grid showcasing the images from the webpage at the activeTab with a select functionality.

Image selector grid screenshot

Packages under the hood

Usage

Folders

  • src - main source.
    • contentScript - scripts and components to be injected as content_script
    • background - scripts for background.
    • components - auto-imported Vue components that are shared in popup and options page.
    • styles - styles shared in popup and options page
    • assets - assets used in Vue components
    • manifest.ts - manifest for the extension.
  • extension - extension package root.
    • assets - static assets (mainly for manifest.json).
    • dist - built files, also serve stub entry for Vite on development.
  • scripts - development and bundling helper scripts.

Development

pnpm dev

Then load extension in browser with the extension/ folder.

For Firefox developers, you can run the following command instead:

pnpm start:firefox

While Vite handles HMR automatically in the most of the case, Extensions Reloader is still recommended for cleaner hard reloading.

Build

To build the extension, run

pnpm build

And then pack files under extension, you can upload extension.crx or extension.xpi to appropriate extension store.

Web Extension Resources

Docs

Official documentation at Chrome for Developers: Get Started with Web Extensions.

Stay updated by checking What's new in Chrome extensions from time to time.

Books

“Browser extension development, simplified”.

Repositories

Vite starter Web Extensions templates: Vue 3, React, ...

Web Extensions superframework (agnostic): WXT.

Free courses

Build a Chrome Extension – Course for Beginners by freeCodeCamp.org.

About

Web Extension built using `vitesse-webext` template by @antfu. WavE Image Downloader is a browser extension that showcase the images in the active site and allows you to download them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published