eschaefer / mubi-watch-party

A web extension to sync Mubi movies with friends

Home Page:https://addons.mozilla.org/en-US/firefox/addon/mubi-watch-party/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mubi Watch Party

A web extension (Chrome + Firefox) to sync Mubi movies with friends.

Installation

Firefox

Firefox Add-ons

Chrome

Chrome Web Store

Requirements for development

  • node >= 21
  • npm >= 10.2.0

Usage Notes

The extension manifest is defined in src/manifest.js and used by @samrum/vite-plugin-web-extension in the vite config.

Background, content scripts, options, and popup entry points exist in the src/entries directory.

Content scripts are rendered by src/entries/contentScript/renderContent.js which renders content within a ShadowRoot and handles style injection for HMR and build modes.

Otherwise, the project functions just like a regular Vite project.

To switch between Manifest V2 and Manifest V3 builds, use the MANIFEST_VERSION environment variable defined in .env

HMR during development in Manifest V3 requires Chromium version >= 110.0.5480.0.

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Commands

Build

Development, HMR

Hot Module Reloading is used to load changes inline without requiring extension rebuilds and extension/page reloads Currently only works in Chromium based browsers.

npm run dev

Development, Watch

Rebuilds extension on file changes. Requires a reload of the extension (and page reload if using content scripts)

npm run watch

Production

Minifies and optimizes extension build

npm run build

Load extension in browser

Loads the contents of the dist directory into the specified browser

npm run serve:chrome
npm run serve:firefox

About

A web extension to sync Mubi movies with friends

https://addons.mozilla.org/en-US/firefox/addon/mubi-watch-party/


Languages

Language:ReScript 82.5%Language:JavaScript 15.5%Language:HTML 1.4%Language:CSS 0.5%