Skip to content

eclipher/Userscripts

Repository files navigation

eclipher/Userscripts

English | 简体中文

List of Userscripts

  • LeetCode Toolkit
    • Enhance LeetCode with various tweaking and additions. It supports both the US version of LeetCode.com, and the China version.
  • NowCoder Toolkit
    • Save NowCoder.com practice problems in markdown or Jupyter Notebook.

Usage

To use a userscript, you'll first need to install a userscript manager for your browser, such as Tampermonkey (available for Chrome, Firefox, and many other browsers).

After that, go to the respective GreasyFork page of the userscript, and click on the Install button to install the script.

Development

This repo utilizes vite-plugin-monkey to develop and build the userscripts.

  1. Clone the repo

  2. Install dependencies

    cd path-to-repo
    pnpm install
  3. Start development server

    pnpm -F name-of-script dev
    
    # Alternative
    cd path-to-repo/userscripts/path-to-script
    pnpm
  4. Build the script

    pnpm -F name-of-script dev
    
    # Alternative
    cd path-to-repo/userscripts/path-to-script
    pnpm build

    The built file will be under dist directory.

License

MIT