Real-time analysis of your social media comments to identify emotional content.
Empatia Extension
Empatia provides real-time analysis of social media comments to identify emotional content and deliver inline feedback. Think of this feedback as a way to double check how you communicate on social media. Sometimes we write a comment that we'll regret writing, or regret writing the way we wrote it - I hope Empatia can help with that.
This project was primarily built as a learning experience. Suggestions for fixes and improvements are welcome.
Currently available to run on Reddit, BlueSky, and Twitter (X).
Getting Started
Select supported sites: Choose which sites (Reddit, Bluesky, or Twitter) Empatia will run on.
Adjust sensitivity: Set the sensitivity for emotional feedback (higher sensitivity will detect negative emotions with a lower threshold).
Set the minimum word count you want there to be before Empatia starts analyzing the text.
Write a comment or post: As you type, Empatia sends your text through sentiment analysis to assess its emotional polarity.
Positive feedback: Receive messages encouraging positive interactions if your comment is classified as positive.
Negative feedback: If your comment is negative, the system classifies the emotion and provides specific feedback (anger, annoyance, disgust, sadness, generic).
Letter e icons created by arnikahossain - Flaticon
Read more
This project was primarily built as a learning experience. Suggestions for fixes and improvements are welcome.
Currently available to run on Reddit, BlueSky, and Twitter (X).
Getting Started
Select supported sites: Choose which sites (Reddit, Bluesky, or Twitter) Empatia will run on.
Adjust sensitivity: Set the sensitivity for emotional feedback (higher sensitivity will detect negative emotions with a lower threshold).
Set the minimum word count you want there to be before Empatia starts analyzing the text.
Write a comment or post: As you type, Empatia sends your text through sentiment analysis to assess its emotional polarity.
Positive feedback: Receive messages encouraging positive interactions if your comment is classified as positive.
Negative feedback: If your comment is negative, the system classifies the emotion and provides specific feedback (anger, annoyance, disgust, sadness, generic).
Letter e icons created by arnikahossain - Flaticon
Source Manifest.json
{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Empatia", "version": "1.1", "description": "Real-time analysis of your social media comments to identify emotional content.", "background": { "service_worker": "scripts/background.js", "type": "module" }, "content_scripts": [ { "matches": [ "https://*.reddit.com/*", "https://*.twitter.com/*", "https://*.x.com/*", "https://*.bsky.app/*" ], "js": ["scripts/content.js"] } ], "action": { "default_popup": "templates/preferences.html" }, "permissions": ["storage"], "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "content_security_policy": { "extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';" }, "web_accessible_resources": [ { "resources": ["icons/icon128.png", "styles/content.css"], "matches": ["https://*.reddit.com/*", "https://*.twitter.com/*", "https://*.x.com/*", "https://*.bsky.app/*"] } ]}
Read more