codecopy icon indicating copy to clipboard operation
codecopy copied to clipboard

Add button on GitHub's source code page

Open zenorocha opened this issue 7 years ago • 2 comments

screen shot 2017-04-15 at 6 25 53 pm

zenorocha avatar Apr 16 '17 01:04 zenorocha

Since we don't actually have a plain code here, we could fetch the file from Rawgit API and copy it to the user clipboard.

Like: https://rawgit.com/zenorocha/codecopy/master/src/styles/main.scss

Naramsim avatar May 02 '17 16:05 Naramsim

RawGit is dead. GitHub actually provide the raw file link itself, no API needed: https://github.com/zenorocha/codecopy/raw/master/src/styles/main.scss. This has the benefit that the extension doesn’t require new domain permissions.

FranklinYu avatar Jul 26 '21 07:07 FranklinYu