leetcode-helper

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

You will need to install an extension such as Tampermonkey, Greasemonkey 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 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.

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

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

Tekijä
tonngw
Päivittäiset asennukset
0
Asennuskerrat
500
Arvostelut
1 0 0
Versio
1.1.3
Luotu
3.5.2022
Päivitetty
14.8.2023
Size
25,4 kt
Lisenssi
MIT
Käytössä

介绍

此油猴脚本是一个针对 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)

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

页面按钮

demo.jpg

右键菜单

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

插件栏

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

实现效果

demo2.jpg

致谢

感谢以下作者提供的思路

参考资料