GitHub Copy Code Snippet

A userscript adds a copy to clipboard button on hover of markdown code snippets

As of 2021-07-21. See the latest version.

نووسەر
Mottie
Ratings
0 0 0
وەشان
0.3.8
Created
2018-01-13
Updated
2021-07-21
Size
3.15 KB
مۆڵەت
MIT
Applies to

A userscript adds a copy to clipboard button on hover of markdown code snippets

  • A button is added each pre formatted code block in markdown pages.
  • Clicking the button will copy the contents of the code block to the clipboard.
  • Buttons are not added to subdomains of GitHub, e.g. help.github.com, because the clipboard script is not loaded on those pages by default.

Hosted with ♥ at GitHub