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

Is it possible to delete a line ? #364

Closed benintech closed 8 months ago

benintech commented 8 months ago

I'm trying to delete all lines having only sometext on it.

But if I replace sometext with nothing, it replaces the line an empty one.

Is it possible to delete the line instead ?

Woundorf commented 8 months ago

If it is HTML, you should set HTML mode to "Input & output" and include the <p> and </p> or the <br> in the substitution to also remove them. If it's some kind of plain text you can try to include a \n (newline) and setting the input type as regular expression.

benintech commented 8 months ago

Great, the \n trick did the job. Thanks.