HackMD Copy Code Snippet

A userscript that adds a copy to clipboard button on hover of code snippets in HackMD

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

Author
planetoid
Daily installs
0
Total installs
5
Ratings
0 0 0
Version
1.0.0
Created
2024-08-31
Updated
2024-08-31
Size
2.89 KB
License
MIT
Applies to

# Usage Instructions

## Usage Instructions in Englsih
1. Visit any HackMD page.
2. Hover your mouse over a code block, and the "Copy" button will become visible.
3. Click the "Copy" button, and the content of the corresponding code block will be copied to your clipboard.
4. After a successful copy, the button will briefly display "Copied!" before returning to its "Copy" state.

## 使用方法 (Usage Instructions in Tradition Chinese)

1. 拜訪任何 HackMD 頁面。
2. 將滑鼠游標停在程式碼塊上,會看到「Copy」按鈕。
3. 點擊「Copy」按鈕,對應的程式碼內容將被複製到剪貼簿。
4. 複製成功後,按鈕會短暫顯示「Copied!」,然後恢復到「Copy」狀態。

## 使用方法 (Usage Instructions in Simplified Chinese)

1. 拜访任何 HackMD 页面。
2. 将鼠标光标停在源代码块上,会看到「Copy」按钮。
3. 点击「Copy」按钮,对应的源代码内容将被复制到剪贴板。
4. 复制成功后,按钮会短暂显示「Copied!」,然后恢复到「Copy」状态。

# License

This user script is released under the MIT License. It was modified from the original work by Mottie, available at https://github.com/Mottie/GitHub-userscripts/blob/master/github-copy-code-snippet.user.js. We express our gratitude to Mottie for their contribution.