- support multiple user defined groups
- support multiple words inside a group
- support highlighting contents across mulitple HTML tag, i.e.
<span>exam<b>ple</b></span>
- calculate a contrast color for the highlighted text
Reference:
- http://james.padolsey.com/javascript/replacing-text-in-the-dom-solved/
- http://stackoverflow.com/questions/2582831/how-can-i-highlight-the-text-of-the-dom-range-object
- https://chrome.google.com/webstore/detail/multi-highlight/pfgfgjlejbbpfmcfjhdmikihihddeeji
Icon:
Bug:
- There may be change in DOM structure if the keyword spans across multi HTML tag.
- When page init, no content in body. Currently, hard-coded a delay, may investigate using MutationObserver() to solve it.