LeetCode Draw

在 leetcode.cn 上添加绘图功能,右侧显示 Excalidraw 画板

Tính đến 03-01-2025. Xem phiên bản mới nhất.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Tác giả
mxgxxx
Đánh giá
0 0 0
Phiên bản
0.3
Đã tạo
02-01-2025
Đã cập nhật
03-01-2025
Kích thước
4 KB
Giấy phép
MIT
Áp dụng cho

LeetCode Draw

LeetCode Draw 是一个油猴插件,为 leetcode.cn 网站添加绘图功能。通过在右侧显示 Excalidraw 画板,用户可以在刷题时方便地进行绘图和记录。

功能特性

  • 在 leetcode.cn 网站右侧显示 Excalidraw 画板
  • 通过点击按钮显示或隐藏画板
  • 支持拖动调整画板宽度
  • 自动保存画板位置和显示状态
  • 页面刷新后保持画板状态不变

安装步骤

  1. 安装 Tampermonkey 插件(支持 Chrome、Firefox、Safari 等浏览器)
  2. 访问 Greasy Fork 安装脚本
  3. 刷新 leetcode.cn 页面即可使用

使用方法

  1. 打开 leetcode.cn 网站
  2. 点击页面右侧中部的绘图按钮(🖌)显示/隐藏画板
  3. 拖动画板左边界可以调整画板宽度
  4. 在 Excalidraw 画板中进行绘图和记录
  5. 画板的位置和显示状态会自动保存

更新日志

v0.3

  • 添加画板宽度拖动调整功能
  • 增加状态持久化存储
  • 优化用户交互体验

v0.2

  • 初始版本发布
  • 基础画板显示功能
  • 按钮控制画板显示/隐藏

许可证

MIT License