post-tweet
Post only twitter client application.
post-tweet should be launched by URL Scheme.
Warning: post-tweet require Node.js 16 Can not build on Node.js 18+
Installation
You should create a binary on your env.
yarn
cp src/renderer/twitter/TwitterSecrets.example.js src/renderer/twitter/TwitterSecrets.js
# edit src/renderer/twitter/TwitterSecrets.js
yarn dist
# output binary
Usage
- Open app
- Launch app and register URL Scheme
- Input description
- Post tweet by Cmd+Shift+Enter shortcut
URL Scheme
post-tweet support post-tweet://
schema.
You can open the app from your browser.
post-tweet://
schema support following parameter.
url
: URLtitle
: Titlequote
: Quoted text
Example:
const selectedText = window.getSelection().toString();
location.href = `post-tweet://?url=${encodeURIComponent(window.top.location.href)}&title=${encodeURIComponent(window.top.document.title)}"e=${encodeURIComponent(selectedText)}`
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
License
MIT