Avoiding the Scunthorpe problem with FoxReplace Topic is solved

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: Lootyhoof, FranklinDM

User avatar
Mæstro
Astronaut
Astronaut
Posts: 542
Joined: 2019-08-13, 00:30
Location: Casumia

Avoiding the Scunthorpe problem with FoxReplace

Unread post by Mæstro » 2025-05-21, 10:01

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?
Browser: Pale Moon (official build, updated regularly)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 ELTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Ash is the best letter.

User avatar
Gemmaugr
Fanatic
Fanatic
Posts: 138
Joined: 2025-02-03, 07:55

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Gemmaugr » 2025-05-21, 10:36

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?

User avatar
back2themoon
Moon Magic practitioner
Moon Magic practitioner
Posts: 2895
Joined: 2012-08-19, 20:32

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by back2themoon » 2025-05-21, 11:51

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

Michaell
Lunatic
Lunatic
Posts: 347
Joined: 2018-05-26, 18:13

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Michaell » 2025-05-21, 21:01

back2themoon wrote:
2025-05-21, 11:51
Doesn't that extension allow you to replace "whole words" only?
Nope, it works on strings inside a word.
Win10home(1709), PM33.7.0-portable as of Apr 8, '25

Michaell
Lunatic
Lunatic
Posts: 347
Joined: 2018-05-26, 18:13

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Michaell » 2025-05-21, 21:12

Mæstro wrote:
2025-05-21, 10:01
I 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?
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.
Win10home(1709), PM33.7.0-portable as of Apr 8, '25

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37676
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Moonchild » 2025-05-21, 21:36

Michaell wrote:
2025-05-21, 21:12
using a specific custom string you can recognize rather than dashes allows you to understand what was replaced.
Profanity by any other sequence of letters is still profanity.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Mæstro
Astronaut
Astronaut
Posts: 542
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Mæstro » 2025-05-21, 22:30

Gemmaugr wrote:
2025-05-21, 10:36
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[…]

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?
I am implementing this for myself, so only what offends me counts. ;)
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.
Browser: Pale Moon (official build, updated regularly)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 ELTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Ash is the best letter.

User avatar
adoxa
Lunatic
Lunatic
Posts: 427
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by adoxa » 2025-05-22, 00:52

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
Lunatic
Posts: 347
Joined: 2018-05-26, 18:13

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Michaell » 2025-05-22, 02:48

Don't know about Maestro, but I'm using 0.17.3.
Win10home(1709), PM33.7.0-portable as of Apr 8, '25

User avatar
adoxa
Lunatic
Lunatic
Posts: 427
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by adoxa » 2025-05-22, 07:04

Michaell wrote:
2025-05-21, 21:01
back2themoon wrote:
2025-05-21, 11:51
Doesn't that extension allow you to replace "whole words" only?
Nope, it works on strings inside a word.
I didn't actually test it, but it does at least offer "Whole words" (and RE, which could provide same).
foxreplace-replace-type.png
You do not have the required permissions to view the files attached to this post.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37676
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Moonchild » 2025-05-22, 07:54

Regexes are very powerful and will easily allow you to include all delimiters if "whole words" isn't working for you.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Mæstro
Astronaut
Astronaut
Posts: 542
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Mæstro » 2025-05-22, 18:00

Michaell wrote:
2025-05-22, 02:48
Don't know about Maestro, but I'm using 0.17.3.
I use the same version as you. This version does not offer regular expressions or whole word filters.
Browser: Pale Moon (official build, updated regularly)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 ELTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Ash is the best letter.

User avatar
Cassette
Lunatic
Lunatic
Posts: 408
Joined: 2015-05-08, 14:30
Location: Wichita, KS

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Cassette » 2025-05-22, 19:26

Mæstro wrote:
2025-05-22, 18:00
Michaell wrote:
2025-05-22, 02:48
Don't know about Maestro, but I'm using 0.17.3.
I use the same version as you. This version does not offer regular expressions or whole word filters.
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.

User avatar
Mæstro
Astronaut
Astronaut
Posts: 542
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Avoiding the Scunthorpe problem with FoxReplace

Unread post by Mæstro » 2025-05-23, 10:43

Cassette wrote:
2025-05-22, 19:26
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.
I never realised this. Thank you!
Browser: Pale Moon (official build, updated regularly)
Operating System: Linux Mint Debian Edition 4 (amd64)
※Receiving Debian 10 ELTS security upgrades
Hardware: HP Pavilion DV6-7010 (1400 MHz, 6 GB)
Ash is the best letter.