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

fox replace having issue replacing word starting with period "." and doesn't replace them #360

Open wtfiwinomgs opened 11 months ago

wtfiwinomgs commented 11 months ago

some work while others dont work tried every option, text, whole word or regular expression nothing works

to give an example: (all without " " quotation)

". Its working." replacing it with " and Its working." doesn't work, regardless of the 3 options available text/whole words / expression etc, regardless letter case match or not

however

". Its wor" replacing it with " and its wor" will work with just text, with/without case matching.

whats going on

edit: this is on discord chat message area

wtfiwinomgs commented 11 months ago

heres another example:

"Thx. for the tip." replacing with "Thanks" does not work, tried with all 3 options, case letter match/not nothing works

"x. for" replace with "x for" also doesn't get picked up, not working

Woundorf commented 11 months ago

Your examples work here on GitHub. Maybe Discord is adding some formatting elements in the middle of those texts or they span several DOM nodes, in which case it will not work.

wtfiwinomgs commented 8 months ago

Your examples work here on GitHub. Maybe Discord is adding some formatting elements in the middle of those texts or they span several DOM nodes, in which case it will not work.

I think so. sometimes it'll work on discord other times doesn't not sure why it'll be super nice of you to check into the DOM thing when you have free time, this extension is a god sent