Woundorf / foxreplace

Replace text in webpages
https://addons.mozilla.org/firefox/addon/foxreplace/
GNU General Public License v3.0
90 stars 22 forks source link

Adding Colors to Changes #353

Closed I7y3o1 closed 1 year ago

I7y3o1 commented 1 year ago

Working on certain platforms, we see a large amount of information. And the words that we change are not always evident. Is it possible to make an additional filter so that the changed words are highlighted in the color you are interested in? For example, just the whole word or sentence was highlighted in color

Woundorf commented 1 year ago

Hi, you can do it already if you use HTML in output to add a wrapper to add color. For example:

Replace: color Type: Text With: <span style="background-color:yellow">$&</span> HTML: Output only

Result when applied to this page:

imatge

I7y3o1 commented 1 year ago

but in this case we offer the old word. And how to change the new one and highlight it?

Woundorf commented 1 year ago

Then use <span style="background-color:yellow">new word</span> instead.

I7y3o1 commented 1 year ago

thanks