Skip to content

fengnzl/Leetcode-Sync-Github-Helper

Repository files navigation

Leetcode Sync Github Helper

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.

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.
  • assets - static assets (mainly for manifest.json).
  • extension - extension package root.
  • 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

web-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.

Local Use

To build the extension, run

pnpm build

And then pack files under extension, you can upload extension directory to appropriate extension store.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages