HackMD Copy Code Snippet

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
planetoid
今日安裝
0
安裝總數
5
評價
0 0 0
版本
1.0.0
建立日期
2024-08-31
更新日期
2024-08-31
尺寸
2.9 KB
授權條款
MIT
腳本執行於

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