Follow TV Tropes

Following

Text replacement plugins

Go To

war877 Grr... <3 from Untamed Wilds Since: Dec, 2015 Relationship Status: Having tea with Cthulhu
Grr... <3
#1: Mar 31st 2016 at 1:03:18 AM

I have three questions.

  1. How do text replacement plugins work?
  2. Why do they affect text entry fields as well as regular html content?
  3. Would either a wishlist item or bug report to circumvent text replacement action in text entry fields be appropriate?

If text replacement action were blocked in specific text entry fields then text replacement plugins would no longer affect edits.

Ultimatum Disasturbator from Second Star to the left (Old as dirt) Relationship Status: Wishfully thinking
Disasturbator
#2: Mar 31st 2016 at 4:02:20 AM

Could always have a warning pop up after registering saying "If your running text changers,turn them off NOW!" since its the new users who usually have it on

edited 31st Mar '16 4:02:31 AM by Ultimatum

New theme music also a box
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#3: Mar 31st 2016 at 5:01:02 AM

  1. By replacing text on a web page with different text when it is rendered.
  2. Because their programmers don't bother to think of these things; they are too busy feeling edgy and clever.
  3. There is no way to block every possible text-replacement plugin because you can't predict what will be altered next.

edited 31st Mar '16 5:02:26 AM by Fighteer

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
war877 Grr... <3 from Untamed Wilds Since: Dec, 2015 Relationship Status: Having tea with Cthulhu
Grr... <3
#4: Mar 31st 2016 at 11:10:02 AM

[up] (1) I was guessing that they replace text when it is added to the HTML section. (2) But it would take more work, not less to also replace text in additional areas. (3) Are you talking about heuristic detection from what they replace? I am talking about blocking the mechanism. Which would be done without first detecting the plugin.

I am assuming this is possible. If text replacement replaced everything, then it would break websites by breaking links and messing with js code.

Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#5: Mar 31st 2016 at 11:21:21 AM

There are some fancy scripting tricks you can use to control the rendering and display of a web page on the user's end, but they tend to be somewhat expensive in terms of performance. It's something to look at as a tech issue, but Wikipedia deals with the same exact problem.

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
Ultimatum Disasturbator from Second Star to the left (Old as dirt) Relationship Status: Wishfully thinking
Disasturbator
#6: Mar 31st 2016 at 1:41:03 PM

Would something like a pop up work?

"Hi,are you running a text replacement feature?—-yes—-Then turn it off!

Bonus points if they hit no,automatic ban if they are running one anyway

New theme music also a box
AnotherDuck No, the other one. from Stockholm Since: Jul, 2012 Relationship Status: Mu
No, the other one.
#7: Mar 31st 2016 at 1:51:11 PM

Isn't anyone caught using one suspended anyway?

Check out my fanfiction!
SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#8: Mar 31st 2016 at 1:56:49 PM

^^Not reliable enough I'd say.

Anyhow, at a minimum for a tech based (possibly unreliable) solution we need a string of text, not overly long, that contains all "sensitive" words. Then we'd need to put it as "hidden" (i.e invisible to human readers) text on edit pages that is editable. If the page saves with that text string modified (by a plugin or bot) the save is rejected.

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#9: Mar 31st 2016 at 2:11:25 PM

Or we could wrap the whole editing interface in a big chunk of HTML 5 or Javascript that loads the edit window content via AJAX or something to bypass the filters, but that does create a fairly imposing barrier for those who don't like or can't use such scripting.

edited 31st Mar '16 2:20:19 PM by Fighteer

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#10: Mar 31st 2016 at 2:16:40 PM

Yeah, that one is definitively on the "can't be done" pile. Especially given the performance problems that would create.

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman
war877 Grr... <3 from Untamed Wilds Since: Dec, 2015 Relationship Status: Having tea with Cthulhu
Grr... <3
#11: Mar 31st 2016 at 4:39:54 PM

So if the content of the edit window were loaded into the edit window from a compressed file after page load, the text replacer would still get it? This would make sense if the point of alteration is when the text is placed in the field. And also if the plugins monitor changes to the field and perform live replacement.

I would like to do some more research on these plugins, but google does not like my search terms. Do any of you know what these things are normally called?

edited 31st Mar '16 4:48:13 PM by war877

Unknownlight Since: Aug, 2009
#12: Apr 1st 2016 at 4:18:34 PM

[up][up][up][up] I actually think this is a really good idea. More often than not, the text replacers used are Cloud-to-Butt or Trump-to-Drumpf, so you literally only need to check those two words.

AnotherDuck No, the other one. from Stockholm Since: Jul, 2012 Relationship Status: Mu
No, the other one.
#13: Apr 1st 2016 at 7:33:28 PM

It would perhaps be possible to check all modified text and see if they contain one of those words, and if they do, check if they used to say what they replace. Basically one step more than a regular chat censor filter.

Check out my fanfiction!
billybobfred Cosine! from renamed to wingedcatgirl Since: Jan, 2001 Relationship Status: Crazy Cat Lady
#14: Apr 1st 2016 at 7:41:31 PM

[up][up]Another one that used to be a big problem around here was auto-Bowdlerising nannybots, so throw in a "fuck shit ass" or something.

SJW -> skeleton is also popular, but that hopefully doesn't come up much.

she her hers hOI!!! i'm tempe
Rotpar Always 3:00am in the Filth from California (Unlucky Thirteen) Relationship Status: THIS CONCEPT OF 'WUV' CONFUSES AND INFURIATES US!
Always 3:00am in the Filth
#15: Apr 1st 2016 at 8:20:42 PM

Well, we could embed every page with "cloud" and "Trump" but that's just a band-aid fix—and we can't predict when some dummy is going to replace "Superman" with "salad" or "night" with "nachos" because of reasons.

edited 1st Apr '16 8:27:01 PM by Rotpar

"But don't give up hope. Everyone is cured sooner or later. In the end we shall shoot you." - O'Brien, 1984
Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#16: Apr 1st 2016 at 9:46:20 PM

We do already have such a tool, or did. Eddie put in a hidden text field that gets submitted whenever you press Send on a wiki edit. It is clearly not reliable, and I don't think the current devs have been maintaining it. I'll see if they are interested in the project.

edited 1st Apr '16 9:46:28 PM by Fighteer

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
billybobfred Cosine! from renamed to wingedcatgirl Since: Jan, 2001 Relationship Status: Crazy Cat Lady
#17: Apr 6th 2016 at 8:31:28 PM

[up][up]You want us to come up with a general solution to the problem of "text replacers exist"? Sure, let's fill the invisible text field with a copy of the entire pre-edit wikitext and block the edit if it's changed in any way.

... Actually, even though I typed that sarcastically, I wonder if that's a genuinely viable solution? Probably not, but I don't know enough about... whatever the relevant computer stuff would be.

she her hers hOI!!! i'm tempe
war877 Grr... <3 from Untamed Wilds Since: Dec, 2015 Relationship Status: Having tea with Cthulhu
Grr... <3
#18: Apr 6th 2016 at 8:37:27 PM

[up]You can add some very simple code to duplicate the text to make the outgoing bandwidth cost minimal. However, unless some trick of the way text replacers work (which I still haven't found good documentation on) is exploited, both copies will have to be sent back as the test must be done on the servers. And the test has to be done on the servers.

And fudge. You can kill that problem by sending the new text back as a diff file. But the test would still have to be done on the servers.

edited 6th Apr '16 8:43:22 PM by war877

Fighteer Lost in Space from The Time Vortex (Time Abyss) Relationship Status: TV Tropes ruined my love life
Lost in Space
#19: Apr 7th 2016 at 5:00:47 AM

We want a solution that does not require burdening the end-user experience with a ton of scripting.

"It's Occam's Shuriken! If the answer is elusive, never rule out ninjas!"
war877 Grr... <3 from Untamed Wilds Since: Dec, 2015 Relationship Status: Having tea with Cthulhu
Grr... <3
#20: Apr 7th 2016 at 9:46:24 AM

I think you are already using javascript for something. The difference between a small amount of javascript and a large amount of javascript is negligible. Especially for use cases that only registered users will ever see.

Using some light scripting to reduce server load and bandwidth is a real possibility as well.

SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#21: Apr 7th 2016 at 10:59:56 AM

The current amount of scripting is already generating a number of problems, so I am not overly keen at adding more.

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman
billybobfred Cosine! from renamed to wingedcatgirl Since: Jan, 2001 Relationship Status: Crazy Cat Lady
#22: Aug 21st 2016 at 10:50:36 AM

Given that the problem of "wordfilter plugins mess with wikis" doesn't seem to have an easy solution, can we get a "hey don't use wordfilter plugins when editing" message added to that list that you can send people?

she her hers hOI!!! i'm tempe
TotemicHero No longer a forum herald from the next level Since: Dec, 2009
No longer a forum herald
#23: Aug 21st 2016 at 11:25:27 AM

Well, the problem there is that assuming they have a plug-in active that could affect TV Tropes, by the time they see the message (which would be while editing), it's most likely a little too late. It would be really difficult for any troper to catch any and all changes made by a substitution plug-in without the page history to guide them.

The objective is to prevent the plug-ins from messing with TV Tropes at all, not have it so after the first time it will be taken care of.

Expergiscēre cras, medior quam hodie. (Awaken tomorrow, better than today.)
billybobfred Cosine! from renamed to wingedcatgirl Since: Jan, 2001 Relationship Status: Crazy Cat Lady
#24: Oct 30th 2016 at 1:21:50 PM

by the time they see the message (which would be while editing), it's most likely a little too late

Are we thinking of the same list of messages? I'm thinking of the "Is there an issue? Send a message" link you can find in the edit histories. Those are always sent after the edit they're responding to. That's... kind of what a response is?

The fact that we want to prevent those plugins from affecting edits in the first place doesn't mean we can't have a quick "hey don't do that" message for it added to the already-existing list of quick "hey don't do that" messages.

edited 30th Oct '16 1:23:24 PM by billybobfred

she her hers hOI!!! i'm tempe
SeptimusHeap from Switzerland (Edited uphill both ways) Relationship Status: Mu
#25: Oct 30th 2016 at 1:25:56 PM

Yes, and that is a problem. We'd like for the problem edits not to happen at all, not merely the tropers being warned after the fact.

"For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." - Richard Feynman

Total posts: 27
Top