code-plus

解放鼠标,学码快人一步! 代码随想录网站辅助工具, 支持快速跳转到指定语言类型, 跳转到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!)

Аўтар
righthan
Усталяванняў за дзень
0
Усяго ўсталяванняў
25
Рэйтынг
0 0 0
Версія
0.6
Створаны
17.09.2023
Абноўлены
23.05.2024
Памер
9.8 КБ
Ліцэнзія
MIT
Ужываецца на

Code-plus 代码随想录网站辅助工具

解放鼠标, 提高操作效率

解决的痛点需求

  • 每种算法都有很多语言的代码实现, 需要使用鼠标划拉半天, 无法快速定位到自己想要的目标语言类型的代码 😭
  • 虽然收藏了网页, 但每次打开页面都是首页, 需要在重新查找上次的进度 😭
  • 自己先看讲解思路实现了算法, 每次都需要返回页面头部找到 LeetCode 题目链接来测试 😭

主要功能

一些功能通过在页面快速连按 g 的组合键实现

  • gg:跳转到目标类型代码 ⭐️
  • gl:跳转到对应的 LeetCode 题目链接 ⭐️
  • (默认启用)打开首页跳转到上次的进度 ⭐️
  • gc:设置需要跳转到目标语言代码(会存储在 cookie 中, 只需设置一次)
  • gj:跳转到下一篇文章
  • gk:跳转到上一篇文章
  • gr:跳转到相关题目
  • gt:跳转到思路
  • gh:弹出帮助页面

存在的 Bug

使用了一段时间, 发现一些网页导致的 bug

  • 一些页面的标识的语言类型不正确, 导致跳转不到对应的代码, 这是因为源网页中表明的代码类型本身是错误的(这种情况很少)
  • 在侧边导航"双指针"一栏里的切换上下文章异常, 因为是通过侧边栏上的 "上一篇/下一篇"按钮获取的链接, 有些链接是不对的, 所以点击侧边栏按钮也会是这种情况, 而且"双指针"主要是对之前页面的总结引用, 所以会跳转到之前的链接里
  • 切换上下文在"本站必读", "星球资源"", "编程素养"...就是算法题目前的这部分内容, 跨栏目无法正常切换, 但栏目内的是行的, 数组及之后的也是正常的