Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
Copy Leetcode Problem 预览

Copy Leetcode Problem 作者: Koruto

Easily copy the current LeetCode problem description to your clipboard.

5 (1 reviews)5 (1 reviews)
4 个用户4 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

关于此扩展
LeetCode QuestionClip

A Firefox add-on that allows you to effortlessly copy LeetCode question descriptions to your clipboard with custom formatting.

Features:
Easy Copying: Quickly copy LeetCode question descriptions with desired Markdown formatting.

Icon States:
Save Icon: Displayed when you are on a valid LeetCode problem URL and have the description tab active.
Tick Mark: Indicates that the question description has been successfully copied to the clipboard.
Error Icon: Signals an error occurred while copying. Refreshing the page may resolve the issue.
Forbidden Icon: Shown when the current URL is not a valid LeetCode problem description page.

Usage:
1. Navigate to a LeetCode problem URL.
2. Click on the "Description" tab to ensure the problem description is visible.
3. Click the extension icon to copy the description.
4. The icon will update to indicate the status:
Save Icon: Ready to copy.
Tick Mark: Copy successful.
Error Icon: Error occurred. Try refreshing the page.
Forbidden Icon: Invalid URL. Ensure you are on a valid LeetCode problem description page.

Notes:
Ensure you are on a LeetCode problem URL ending with /description/ for the extension to work correctly.
In case of errors, try refreshing the page and ensure the problem description is visible.

Author: Koruto
评分 5(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
1
4
0
3
0
2
0
1
0
阅读全部 1 条评价
权限与数据详细了解

必要权限:

  • 输入数据到剪贴板
  • 获取浏览器标签页
更多信息
附加组件链接
  • 支持邮箱
版本
1.1
大小
42.73 KB
上次更新
1 年前 (2024年8月10日)
相关分类
  • 下载管理
  • 标签页
许可证
仅 GNU 宽通用公共许可证 v3.0
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
1.1 的发布说明
Version: 1.2.0
New Features:

DOM Content Load Handling:
The content script now waits for the DOM to be fully loaded before executing. This ensures that the LeetCode question title and description are reliably captured, even on slower connections or complex pages.
Introduced a DOMContentLoaded event listener in the background script to trigger the injection and execution of the content script only after the DOM has loaded. This reduces the likelihood of errors caused by attempting to access elements that haven't been rendered yet.

UI/UX Improvements:

Loading Indicator:
Updated the browser action icon to change to a "loading" icon immediately after the button is clicked. This provides visual feedback to users, indicating that the extension is processing their request.
The icon reverts to either a success or error icon based on the result of the clipboard operation, offering clear and immediate feedback.

Error Handling:

Improved error handling and logging in both the background and content scripts. Users will now see more descriptive error messages if the LeetCode question title or description fails to load.
Additional checks were added to ensure that the extension gracefully handles scenarios where the DOM is not ready or when expected elements are not found.

Bug Fixes:

Fixed an issue where the extension might attempt to execute before the DOM is fully loaded, resulting in errors or incomplete data capture.
Resolved minor issues with clipboard operations not providing immediate feedback in certain edge cases.

Other Changes:
Refactored code to improve readability and maintainability, including separating concerns between the background script and content script more clearly.
Koruto 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。