Mottie / GitHub-userscripts

Userscripts to add functionality to GitHub
https://greasyfork.org/en/users/24847
MIT License
1.81k stars 167 forks source link

Can `Copy Code Snippet` also support to code of greasyfork.org ? #140

Closed dnknn closed 3 years ago

dnknn commented 3 years ago

Hi~ This script is very easy to use and useful, there is a suggestion:

// @include     /https://greasyfork.org/[^/]+/scripts/\d+[^/]+/code/
// @include     /https://sleazyfork.org/[^/]+/scripts/\d+[^/]+/code/

For example: https://greasyfork.org/scripts/37307/code

image

Mottie commented 3 years ago

This change won't work because the copy code userscript uses the built-in GitHub Clipboard copy element web component.

Anyway, I added it over in the Misc-userscripts repo - https://github.com/Mottie/Misc-userscripts/wiki/Greasy-Fork-Copy-Code

dnknn commented 3 years ago

Thank you so much for your contribution!!!

https://github.com/Mottie/Misc-userscripts/wiki/Greasy-Fork-Copy-Code#wiki-body:~:text=Click%20this%20link%20to%20install%20from%20GitHub%2C%20or%20install%20from%20GreasyFork%20or%20OpenUserJS

👆 The wrong link points to ^_^ @Mottie

image