HackMD Copy Code Snippet

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

Fejlesztő
planetoid
Napi telepítések
0
Telepítések száma
5
Értékelések
0 0 0
Verzió
1.0.0
Létrehozva
2024.08.31.
Frissítve
2024.08.31.
Size
3 KB
Licensz
MIT
Érvényes

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