download github directory via one click, copy the single file's source code easily
当前为
It's a useful user script for Github users:
All its features are seamless integrated with Github, and works great with octotree.

This script use script manager's Download feature to download single code file, and it must follow script manager's Secure restrictions, like Tampermonkey says:
for security reasons the file extension needs to be whitelisted at Tampermonkey's options page
The following steps showing you how to config that in Tampermonkey
You can added your custom file extension the whitelist by follow steps:
chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/options.html#nav=settingsGeneral -> Config mode to AdvancedDownloads BETA, add file extension Regexp to the Whitelisted File Extensions:, e.g.:
regexp
/\.(js|ts|jsx|tsx|json|java|go|cpp|c|swift|cmd|sh|md|markdown|rb)$/
or you can add /\..*$/ to the list to allow any file extensions at your own risk