Avoiding the Scunthorpe problem with FoxReplace Topic is solved
Moderators: FranklinDM, Lootyhoof
-
Mæstro
- Keeps coming back

- Posts: 986
- Joined: 2019-08-13, 00:30
- Location: Casumia
Avoiding the Scunthorpe problem with FoxReplace
I dislike profanity and use FoxReplace to substitute foul words with em dashes. However, as named in the title, this can result in false positives: eg one reads of the ancient ‘Cu—es’. Would anybody have advice on how I can hide bad language I do not want to see while avoiding embarrassing mistakes like this?
‘Life is a fever dream Mæstro would enjoy.’
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
-
Gemmaugr
- Lunatic

- Posts: 468
- Joined: 2025-02-03, 07:55
Re: Avoiding the Scunthorpe problem with FoxReplace
Would seems like an exercise in futility, as "bad" words can be highly individual (some people are offended by the word fat or master), and slang constantly evolves (like sheite or shite or type shi even scheize instead of shit).
That said, would surrounding the words in their entirety with spaces like %20shit%20 make it so that it doesn't affect the word inside of another word?
That said, would surrounding the words in their entirety with spaces like %20shit%20 make it so that it doesn't affect the word inside of another word?
-
back2themoon
- Knows the dark side

- Posts: 3096
- Joined: 2012-08-19, 20:32
Re: Avoiding the Scunthorpe problem with FoxReplace
Doesn't that extension allow you to replace "whole words" only? I use the following userscript for replacing words (not "bad" ones, just annoying spelling mistakes on a few websites).
https://greasyfork.org/en/scripts/10976 ... n-webpages
https://greasyfork.org/en/scripts/10976 ... n-webpages
Improve Pale Moon performance • Safe Mode / clean profile test info
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
How to auto-fill passwords • How to apply user agent overrides
Information to include when asking for support
Windows 10 Pro x64 (W11: hard pass)
-
Michaell
- Lunatic

- Posts: 400
- Joined: 2018-05-26, 18:13
Re: Avoiding the Scunthorpe problem with FoxReplace
Nope, it works on strings inside a word.back2themoon wrote: ↑2025-05-21, 11:51Doesn't that extension allow you to replace "whole words" only?
Win10home(1709), PM34.0.1-portable as of Jan. 22, 2026
-
Michaell
- Lunatic

- Posts: 400
- Joined: 2018-05-26, 18:13
Re: Avoiding the Scunthorpe problem with FoxReplace
It's not what you're hoping for, but using a specific custom string you can recognize rather than dashes allows you to understand what was replaced. If the embarrassing part is when you're quoting someone else's text, just remember to proofread before posting, which is a good practice anyway.Mæstro wrote: ↑2025-05-21, 10:01I dislike profanity and use [url=https://j2team.dev/firefox-extension/foxreplace] Would anybody have advice on how I can hide bad language I do not want to see while avoiding embarrassing mistakes like this?
Win10home(1709), PM34.0.1-portable as of Jan. 22, 2026
-
Moonchild
- Project founder

- Posts: 38914
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Avoiding the Scunthorpe problem with FoxReplace
Profanity by any other sequence of letters is still profanity.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Mæstro
- Keeps coming back

- Posts: 986
- Joined: 2019-08-13, 00:30
- Location: Casumia
Re: Avoiding the Scunthorpe problem with FoxReplace
I am implementing this for myself, so only what offends me counts.Gemmaugr wrote: ↑2025-05-21, 10:36Would seems like an exercise in futility, as "bad" words can be highly individual (some people are offended by the word fat or master), and slang constantly evolves[…]
That said, would surrounding the words in their entirety with spaces like %20[example]%20 make it so that it doesn't affect the word inside of another word?
As cursing has become more socially acceptable, I never encounter deliberate misspellings as you describe. Using spaces seems to work: ‘Cushite’ and ‘shitake’ do not trigger the filter, yet your own examples do, to my pleasant surprise. If I must add inflected expletives to the blacklist, I think I can manage this. Indeed, I managed it with this post, adding filters for expletives followed by a full stop, comma or question or exclamatory mark.
‘Life is a fever dream Mæstro would enjoy.’
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
-
adoxa
- Astronaut

- Posts: 594
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Avoiding the Scunthorpe problem with FoxReplace
I'm not sure what version you're using, as neither 2.6.2 (WebExtension) nor 1.1.3 (installed, but the options don't show up) worked. However, installing 2.6.2 in Firefox, you can click "Text" which drops down an option for "Whole words". As far as I can tell it's always supported that.
-
Michaell
- Lunatic

- Posts: 400
- Joined: 2018-05-26, 18:13
Re: Avoiding the Scunthorpe problem with FoxReplace
Don't know about Maestro, but I'm using 0.17.3.
Win10home(1709), PM34.0.1-portable as of Jan. 22, 2026
-
adoxa
- Astronaut

- Posts: 594
- Joined: 2019-03-16, 13:26
- Location: Qld, Aus.
Re: Avoiding the Scunthorpe problem with FoxReplace
I didn't actually test it, but it does at least offer "Whole words" (and RE, which could provide same).Michaell wrote: ↑2025-05-21, 21:01Nope, it works on strings inside a word.back2themoon wrote: ↑2025-05-21, 11:51Doesn't that extension allow you to replace "whole words" only?
You do not have the required permissions to view the files attached to this post.
-
Moonchild
- Project founder

- Posts: 38914
- Joined: 2011-08-28, 17:27
- Location: Sweden
Re: Avoiding the Scunthorpe problem with FoxReplace
Regexes are very powerful and will easily allow you to include all delimiters if "whole words" isn't working for you.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Mæstro
- Keeps coming back

- Posts: 986
- Joined: 2019-08-13, 00:30
- Location: Casumia
Re: Avoiding the Scunthorpe problem with FoxReplace
I use the same version as you. This version does not offer regular expressions or whole word filters.
‘Life is a fever dream Mæstro would enjoy.’
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
-
Cassette
- Lunatic

- Posts: 408
- Joined: 2015-05-08, 14:30
- Location: Wichita, KS
Re: Avoiding the Scunthorpe problem with FoxReplace
It does, though. Look at the image adoxa shared. You click on the T next to the word "Replace" and it gives you the option.
-
Mæstro
- Keeps coming back

- Posts: 986
- Joined: 2019-08-13, 00:30
- Location: Casumia
Re: Avoiding the Scunthorpe problem with FoxReplace
I never realised this. Thank you!
‘Life is a fever dream Mæstro would enjoy.’
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build
‘How is your computer at 96°C and not on fire?’
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build