leetcode-helper

LeetCode 题解助手 | 复制 LeetCode 题目描述 | 生成当前题目题解模板

Version vom 03.05.2022. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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!)

Autor
tonngw
Bewertungen
0 0 0
Version
1.0.0
Erstellt am
03.05.2022
Letzte Aktualisierung
03.05.2022
Größe
25,3 KB
Lizenz
MIT
Wird angewandt auf

介绍

此油猴脚本是一个针对 LeetCode 题库,方便写题解的小工具。

如果对你有帮助别忘了点个 Star 吖~。

功能

  1. 复制题目描述,并存入剪切板
  2. 复制题目描述生成当前题目的题解模板,并存入剪切板

    大多数情况下一道题目只会写一种做法,这里提供了一套简洁的模板,模板来自 AcWing

快速开始

Alt + C 生成当前题目的题解模板,打开写题解页面,Ctrl + A + Ctrl + V 一气呵成,开始写自己的逻辑。

安装

环境:

  1. Chrome 浏览器 / Edge 浏览器
  2. 安装 Tampermonkey 油猴插件,这块大家自行搜索安装,网上有很多教程。

Option 1:直接在 https://greasyfork.org/zh-CN 搜索 leetcode-helper 安装即可,或者通过 此链接 直接安装。「推荐」

Option 2:脚本源代码已经放在了我的 GitHub 仓库中,可以复制自行安装。

如何使用

快捷键「推荐」

  • 功能 1 - Alt + T(timu)
  • 功能 2 - Alt + C(copy)

大家可以自行在源代码中修改快捷键

页面按钮

image-20220503194601369

右键菜单

右键 - Tampermonkey,可以看到 leetcode-helper 提供的功能。

插件栏

点击油猴插件,可以看到 leetcode-helper 提供的功能。

致谢

感谢以下作者提供的思路

参考资料