How can I write a simple Greasemonkey script that allows it to search for a string of text on one website and then simply color it red?
For example, say a site had the words, "Normal Healthy (R11-0902 Gr 9)" … could we program this script to make all instances of this turn red? I would edit the script often to add additional strings to turn red.
Following code will highlight all the
Greasmonkeyin this page.In your case the pattern would be something like
/\w+ \w+ \(\w\d\d-\d{4} \w\w \d\)/. This will only work if your format of the word (Normal Healthy (R11-0902 Gr 9)) is consistent.Other formats can be,