@mujo/plugins

A set of utilities to create plugins in Mujo

Usage no npm install needed!

<script type="module">
  import mujoPlugins from 'https://cdn.skypack.dev/@mujo/plugins';
</script>

README

Mujō Plugin

This is a set of utilities to create a Mujō plugins. This is a collection of hooks and components that allow you to hook into functionality of Mujō extension without having to modify its source code.

Install

npm i @mujo/plugins

Usage

import { Background, Content, NewTabPage } from '@mujo/plugins'

const MyPlugin = () => (
  <>
    <Background>
      <MyBackgroundScripts />
    </Background>
    <NewTabPage>
      <MyNewTabPage />
    </NewTabPage>
    <Content>
      <MyContentScripts />
    </Content>
  </>
)

export default MyPlugin