GitHub Copy Code Snippet

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

As of 01. 07. 2023. See the latest version.

These are versions of this script where the code was updated. Show all versions.

  • v0.3.10 17. 02. 2024

    feat: use eslint-plugin-userscripts (#202)

  • v0.3.10 01. 07. 2023

    Global: replace @include with @match (#192)

  • v0.3.10 24. 10. 2022 Global: Update dependencies
  • v0.3.9 24. 02. 2022 Disable GitHub Copy Code Snippet on main site (#166)
  • v0.3.8 21. 07. 2021 Mutation: Update all
  • v0.3.7 21. 02. 2021 Add @supportURL pointing to the GitHub repo (#137) (per https://github.com/JasonBarnabe/greasyfork/issues/712#issuecomment-649176266 )
  • v0.3.7 31. 01. 2021 Mutation: Add menu observer
  • v0.3.6 23. 07. 2020 Copy-code-snippet: Remove blue class. Closes #119
  • v0.3.5 17. 02. 2019 Global: Update GitHub icon
  • v0.3.4 29. 01. 2019 Global: Update mutation script
  • v0.3.3 05. 10. 2018 Mutations: Update comment load selector
  • v0.3.2 17. 05. 2018 Global: Update mutation script
  • v0.3.1 10. 05. 2018 Global: Update mutation script
  • v0.3.0 01. 05. 2018 Copy-code-snippet: Use new clipboard-copy element, Copy-code-snippet: Target all code in comments
  • v0.2.3 09. 04. 2018 Global: update mutation script url
  • v0.2.2 02. 04. 2018 Copy-code-snippet: Stop using `:any` selector https://caniuse.com/#feat=css-matches-pseudo
  • v0.2.1 28. 01. 2018 Fix compatibility with GitHub Toggle Code Wrap userscript. Fixes #35
  • v0.2.0 24. 01. 2018 Code blocks are no longer wrapped. Fixes #35
  • v0.1.0 13. 01. 2018 Imported from URL