Simple Chrome Extension that colors words according to a list
This project was successfully completed by ale925 for $150 USD in 5 days.Get free quotes for a project like this
Project Budget$30 - $250 USD
Completed In5 days
The extension loads a words file. Then changes the color of words in every page viewed in Chrome to be the color given in the file.
The file contains sections. Sections are separated by a line containing "=====".
Each section contains a header and then a list of words.
The header contains:
First line is the color in Hex RGB.
Second is the background color.
Third is the match type, either: exact, regex, part.
Then the list of words, one per line.
if "exact" is given, then words in the page need to match the words in the section exactly.
if "regex" is given, then the list contains regex’s, and any word matching the regex should be colored accordingly.
if "part" is given, then the word is colored if it contains the string.
The priority of coloring is: exact, part, regex. i.e. regex is used only if exact and part didn’t match the word.
A word boundary is a change between letters, numbers, and other characters. for example the string “one two123, three… fourfive,six,789hundred” will be divided to the words: one, two, 123, three, fourfive, six, 789, hundred.
Fonts and styles should not change.
Links should become underlined (whether visited or not).
The list may contain words in many character sets, and all should be supported.
Everything is case insensitive.
The extension could be turned off by clicking on its icon in the extension bar, recovering the original page view.
The file may be fairly large (10,000 words) and there may be many replacements per page, so it’s important that it’s kept in memory in an efficient data structure (e.g. hash table).
Example of a word file:
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online