A chrome extension powered by vitesse-webext,aims to automatically pushes your pass code to Github. Supported domain names includes leetcode.com and leetcode.cn,both old and new ui versions are supported.
The functionality is basically available and still to be improved. You can build an extension locally and upload it to chrome extensions to use.
src- main source.contentScript- scripts and components to be injected ascontent_scriptbackground- scripts for background.components- auto-imported Vue components that are shared in popup and options page.styles- styles shared in popup and options pageassets- assets used in Vue componentsmanifest.ts- manifest for the extension.
assets- static assets (mainly formanifest.json).extension- extension package root.scripts- development and bundling helper scripts.
pnpm devThen load extension in browser with the extension/ folder.
For Firefox developers, you can run the following command instead:
pnpm start:firefoxweb-ext auto reload the extension when extension/ files changed.
While Vite handles HMR automatically in the most of the case, Extensions Reloader is still recommanded for cleaner hard reloading.
To build the extension, run
pnpm buildAnd then pack files under extension, you can upload extension directory to appropriate extension store.