A userscript to enhance the LeetCode problem-solving experience by providing quick utilities on problem pages.
- Find & save official editorials for offline use
- Copy problem statements and descriptions as Markdown
- Download problems as Jupyter Notebooks
- Automatic code formatting on save
- Unlock IntelliSense in the LeetCode code editor
-
Install a userscript manager:
-
Add the script to your manager:
- Option A: Visit the raw script URL and click "Install":
https://update.greasyfork.org/scripts/532158/LeetCode%20Toolkit.user.js - Option B: Copy the contents of
script.jsinto a new script in your userscript manager.
- Option A: Visit the raw script URL and click "Install":
-
Reload any LeetCode problem page to activate the toolkit.
On any LeetCode problem page, use the newly added toolbar to:
- Save or view editorials
- Copy problem details as Markdown
- Download a ready-to-run Jupyter Notebook
- Format code automatically on save
- Enable IntelliSense in the online editor
- Clone this repository:
git clone <repo-url>
- Open and modify
script.jsto customize features. - Reload the script in your userscript manager to test changes.
Distributed under the MIT License.