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

Substitutions not working on FireFox 126.0.1 #375

Closed cponder closed 5 months ago

cponder commented 5 months ago

I"m trying either of these regular-expression matches

 \<title\>BigCharts - Printer-Friendly Format\</title\>([^]*symb=(\w+))\&
 \<title\>BigCharts - Printer-Friendly Format\</title\>([\S\s]*symb=(\w+))\&

replacing with

 <title>$2 -- BigCharts</title>$1\&

with web-pages like this

   https://bigcharts.marketwatch.com/print/print.asp?nosettings=1&symb=NVDA&uf=0&type=2&size=2&sid=129254&style=320&freq=1&entitlementtoken=0c33378313484ba9b46b8e24ded87dd6&time=8&rand=915754363&compidx=&ma=0&maval=9&lf=1&lf2=0&lf3=0&height=335&width=579&mocktick=1&showColor=False

My intent it o remove junk from the top of the page and replace it with a more specific header. The "symb=(\w+)" finds the label I want to use, replaces the title-header, and restores the string that made up the second part of the match.

This worked fine on my old laptop with an older FireFox, using the first "[^]" form. I'm customizing my new laptop (running Ubuntu 24.04), and finding that this filter isn't working.

cponder commented 5 months ago

I just tried using the substitution

   [\S\s]*     ->    Hello

but don't see any effect on the web-pages. Makes me think that I haven't enabled the filter correctly. Can you try it?

cponder commented 5 months ago

Sorry -- no -- I had to set the "HTML Input+Output" to get the substitutions to work. I'm closing this as not-a-bug., thanks.