-
-
Save azu/8f60bafef5e26e63e89e1ecee8e7f940 to your computer and use it in GitHub Desktop.
kindle copy app from url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/** | |
* https://gist.github.com/georgebrock/9ab3d83bf160b7c1c2b0 | |
* 1. Script Editor | |
* 2. Shell Script | |
* 3. Node.js | |
*/ | |
const url = new URL(process.argv[2]); | |
const text = url.searchParams.get("q"); | |
const clipboardy = require('clipboardy'); | |
clipboardy.writeSync(text); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment