Chrome extension that charm your email with more sophisticated words.
heron2014 / email-charmer Goto Github PK
View Code? Open in Web Editor NEWChrome extension that helps to write more sophisticated emails.
Chrome extension that helps to write more sophisticated emails.
Previous solution :
emailCharmer (content_script) is responsible for:
These above steps don't work for me.
I had trouble to detect the bodyMessage, it wasn't reliable.
The code window.addEventListener('DOMConetentLoaded', ...)
- seems to not be triggered at all
I use setTimeout to detect the bodyMessage, which worked but the rest steps seemed to be overcomplicated for the job.
New solution:
script.js
I think my chose for external API is https://www.wordsapi.com/
Currently to see synonyms suggestions user needs to click on the word.
Problems with that approach:
Bug when clicking on FIRST and LAST word: throws an errror:
Uncaught DOMException: Failed to execute 'setEnd' on 'Range': The offset 28 is larger than or equal to the node's length (27)
Currently I am sending back not quite a very good match to selected word. Check out the response object to get more relevant suggestion.
Also API can't match words which are surrounded by special characters like: . , ? !
Also another issue is with selecting words by clicking on FIRST and LAST throws an errror:
script.js:13 Uncaught DOMException: Failed to execute 'setEnd' on 'Range': The offset 28 is larger than or equal to the node's length (27).
The new suggested word convert into HTML element and append it to bodyMessage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.