Skip to content

GitHub copy code snippet

Rob Garrison edited this page Jan 13, 2018 · 17 revisions

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.
  • Click this link to install from GitHub; or, install from GreasyFork or OpenUserJS.

Screenshot

Change Log

Version 0.1.0 (2018-01-12)

  • Initial commit
Clone this wiki locally