Copy Code in Code Block Footer

Duplicate the header of code blocks as a footer to give a second copy code button

Skapare
Gaveroid
Dagliga installationer
0
Totala installationer
18
Betyg
1 0 1
Version
1.0
Skapad
2023-10-04
Uppdaterad
2023-10-04
Licens
N/A
Gäller för

This duplicates the header of ChatGPT's generated code blocks and adds it as a footer. Now when ChatGPT generates you a really long block of code, you don't have to scroll all the way up to the top to click copy code.

You'll never guess how I made this script!