This repo contains a Chrome extension that identifies and translates passive aggressive phrases in emails. Currently works only with Gmail client.
Passive Aggressive Email Translator Extension
First get the code and build it:
# get code
git clone https://github.com/dimshik100/passive-aggressive-email-translator/
# get dependencies and build
npm install
npm run build
Now ensure the code loads and works:
-
Load the "dist" folder containing the extension (or
manifest.json
) in your browser.-
Open the Extension Management page by navigating to chrome://extensions. The Extension Management page can also be opened by clicking on the Chrome menu, hovering over More Tools then selecting Extensions.
-
Enable Developer Mode by clicking the toggle switch next to Developer mode.
-
Click the LOAD UNPACKED button and select the extension directory.
-
Ta-da! The extension has been successfully installed. Because no icons were included in the manifest, a generic toolbar icon will be created for the extension.
-
-
Load
mail.google.com
in your browser and open the developer console.
You should be greeted by a message saying the following
Hello, <you>. This is your passive aggressive extension talking!
If that works, you should now be ready to customize the
extension-code. Do this by editing extension.js
.
This extension is using gmail.js library.
gmail
should be exposed in the developer console as a global
variable.
You can use this to play around and get familiar with the API.
Cheers!
-
Import partial code from animate.css (only the needed animations) Use animate sass
-
Mark passive aggressive phrases in open emails. Use mark.js
-
Add a tooltip that appears when hovering over a passive aggressive phrase with the real meaning of the phrase. Use tipso
-
Change from browserify to webpack. Checkout chrome extension webpack boilerplate
-
Create extension icon. Add source file.
-
Change extension icon to Enabled / Disabled mode if the user is in Gmail or not.
-
Add a badge to extension icon with the number of found passive aggressive phrases in the opened email.