Skip to content

Generate a DM draft w/ 1-click right next to the send button

Notifications You must be signed in to change notification settings

giannik/twitter-dm-drafter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitter-dm-drafter 🤔

What is this?

twitter-dm-drafter is an add-on to twitter. it'll show up right next to the send button in your DMs.

when you click the button, it will give you a draft response based on the conversation.

you can regenerate as many times as you want, i store nothing! all your keys 🤘

Demo!

gpt3-twitter-extension.mp4

Usage 🤝

  1. clone this repo
  2. add you openai API key in background.js
  3. edit the prompt for personality (optional)
  4. head to chrome://extensions
  5. hit developer mode in top right
  6. add the root of this repo in load unpacked extension

For development 🧑‍💻

pretty basic build, if you wanna dig around:

background.js -> calls api

manifest.json -> chrome extension config

contentScript.js -> whenever you navigate, place a button. on press, tell background to get response

Notes

  • If you use this, pls star it! Helps me know if I should build more stuff like this :)
  • Code is not perfect! Have a couple things I wanna fix, just some trivial best practices heh

Connect with me 🤗

https://twitter.com/aleemrehmtulla

https://aleemrehmtulla.com

https://www.linkedin.com/in/aleemrehmtulla/

About

Generate a DM draft w/ 1-click right next to the send button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.1%
  • HTML 1.9%