Jump to content




The Unbritishifier


27 replies to this topic

#1 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 01 February 2018 - 01:25 PM

Warning: This script modifies the client-side forum page, which means some features like search will not work as expected, as the American spellings you will see when using the script might actually be spelled differently in the post, and the server side sees those spellings instead.
Something rather annoying for me that I've been noticing quite a bit lately is that most of the forum members use British english. Now, while this might not be a problem for anyone else, it's quite annoying for me.

To solve this problem, I wrote myself a Tampermonkey script to automatically convert those pesky British spellings ("colour", "serialise", "licence") to my preferred American spellings (color, serialize, license). Since others may want to use it as well, I'm posting it here.

I understand some people may find it trivial, but my personal preference is American spelling. Sorry, Brits. The script can be found on Pastebin, and you can do whatever you want to it as long as you follow the terms of the MIT license (also embedded in the code).

I'd advise against reading the code if you're a diehard fan of British spelling, since I diss it a bit in there. Nothing too offensive, but it could trigger somebody. Just playing it safe.

Spoiler


#2 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 01 February 2018 - 07:55 PM

View PostLoganDark2, on 01 February 2018 - 01:25 PM, said:

Something rather annoying for me that I've been noticing quite a bit lately is that most of the forum members use British english. Now, while this might not be a problem for anyone else, it's quite annoying for me.
Gee, how do you think the rest of us feel watching the English language be brutalised :P. In all seriousness, I rather like seeing different spellings of words, its' a nice reminder that the internet isn't homogeneous - there's people from all sorts of countries and languages. Apart from lazer, that spelling should go back to the pit it first crawled from.

#3 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 01 February 2018 - 08:05 PM

Posted Image
Let me keep my beautiful colour

Edited by CrazedProgrammer, 01 February 2018 - 08:10 PM.


#4 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 01 February 2018 - 08:06 PM

This was half-joke, half-serious. I do use it myself, but I'm not in any way saying any spelling is better. I'm just sharing what I made.

#5 HydroNitrogen

  • Members
  • 55 posts

Posted 01 February 2018 - 09:26 PM

Wait like for real you are filtering out any foreign / diffrent culture content? That is how one gets major tunnel vision...

#6 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 01 February 2018 - 11:58 PM

View PostGoogleTech, on 01 February 2018 - 09:26 PM, said:

Wait like for real you are filtering out any foreign / diffrent culture content? That is how one gets major tunnel vision...

No! No. I am simply changing the spelling of words. "colour" to "color", etc

#7 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 02 February 2018 - 05:50 AM

View PostGoogleTech, on 01 February 2018 - 09:26 PM, said:

Wait like for real you are filtering out any foreign / diffrent culture content? That is how one gets major tunnel vision...

It's more like someone from Bayern filtering out the german that's taught at schools and universities.

#8 EveryOS

  • Members
  • 569 posts
  • LocationBOO!!

Posted 02 February 2018 - 12:01 PM

The only British spelling I use is flavour, and only when I talk about versions of operating systems.
Other than that, I don't think I use any British spellings

#9 Purple

  • Members
  • 115 posts
  • LocationAlone in the dark, looking at the pretty lights with dreams of things I can not have.

Posted 03 February 2018 - 06:22 PM

How do you install these things and how easy would it be to convert it so that it produces the opposite effect? As in that it converts american to british?

#10 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 03 February 2018 - 06:30 PM

View PostPurple, on 03 February 2018 - 06:22 PM, said:

How do you install these things and how easy would it be to convert it so that it produces the opposite effect? As in that it converts american to british?

View PostLoganDark2, on 01 February 2018 - 01:25 PM, said:

a Tampermonkey script

https://tampermonkey.net/faq.php#Q100
https://tampermonkey.net/faq.php#Q102

British English still has a lot (a LOT) of words ending with "or". As this script blindly converts most words ending in "our" to "or", converting the other way ("or" to "our") would mess up way too many words. Plus, you would be adding a letter, instead of removing it - that would require guessing the case the extra letter would be in, which could be weird with mixed case words (although that's probably an edge case).

Converting "license" to "licence" and other words like that would be easy, since you're just changing a letter, not adding one. I'm not too interested in doing the work for you to "reverse" the script (since I myself prefer American spelling), so unfortunately if you're unable to code in JavaScript you won't be able to make any significant modifications yourself.

You could just add all the conversions you want to the specificBritishMisspellings (don't get mad at me for the name, I'm not too happy with myself either) object, since that is performed last (for every single word found in the document text). If you're able to code in Lua (which most of the people here are able to), you should be able to pick up the syntax for at least adding definitions to that object, since Lua tables and JS objects have a similar enough syntax.

Hope I helped.

#11 Purple

  • Members
  • 115 posts
  • LocationAlone in the dark, looking at the pretty lights with dreams of things I can not have.

Posted 07 February 2018 - 01:10 PM

So basically it's a thing for a browser I don't use. Forget I asked.

#12 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 07 February 2018 - 08:10 PM

View PostPurple, on 07 February 2018 - 01:10 PM, said:

So basically it's a thing for a browser I don't use. Forget I asked.

:o You don't use Google Chrome? How could you! Google Chrome is the best browser ever made, ever! /s

#13 Lupus590

  • Members
  • 2,027 posts
  • LocationUK

Posted 08 February 2018 - 10:10 AM

View PostPurple, on 07 February 2018 - 01:10 PM, said:

So basically it's a thing for a browser I don't use. Forget I asked.

I'm going to assume you use firefox then (probably not a 100% safe assumption, but meh): https://addons.mozil...n/tampermonkey/

#14 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 08 February 2018 - 03:16 PM

View PostLupus590, on 08 February 2018 - 10:10 AM, said:

View PostPurple, on 07 February 2018 - 01:10 PM, said:

So basically it's a thing for a browser I don't use. Forget I asked.

I'm going to assume you use firefox then (probably not a 100% safe assumption, but meh): https://addons.mozil...n/tampermonkey/

Isn't the Firefox version called Greasemonkey? Or is that just the old name and it's Tampermonkey everywhere now?

#15 EveryOS

  • Members
  • 569 posts
  • LocationBOO!!

Posted 08 February 2018 - 03:50 PM

View PostLoganDark2, on 07 February 2018 - 08:10 PM, said:

View PostPurple, on 07 February 2018 - 01:10 PM, said:

So basically it's a thing for a browser I don't use. Forget I asked.

:o You don't use Google Chrome? How could you! Google Chrome is the best browser ever made, ever! /s
Actually chromium is one-up to chrome
Opera, based off of chromium, is third best

Edited by EveryOS, 08 February 2018 - 03:51 PM.


#16 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 09 February 2018 - 12:34 PM

View PostEveryOS, on 08 February 2018 - 03:50 PM, said:

View PostLoganDark2, on 07 February 2018 - 08:10 PM, said:

View PostPurple, on 07 February 2018 - 01:10 PM, said:

So basically it's a thing for a browser I don't use. Forget I asked.

:o/> You don't use Google Chrome? How could you! Google Chrome is the best browser ever made, ever! /s
Actually chromium is one-up to chrome
Opera, based off of chromium, is third best

Quantum > the chrome family :P

#17 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 09 February 2018 - 12:36 PM

View PostH4X0RZ, on 09 February 2018 - 12:34 PM, said:

View PostEveryOS, on 08 February 2018 - 03:50 PM, said:

View PostLoganDark2, on 07 February 2018 - 08:10 PM, said:

View PostPurple, on 07 February 2018 - 01:10 PM, said:

So basically it's a thing for a browser I don't use. Forget I asked.

:o/> You don't use Google Chrome? How could you! Google Chrome is the best browser ever made, ever! /s
Actually chromium is one-up to chrome
Opera, based off of chromium, is third best

Quantum > the chrome family :P

What a unique opinion :P

#18 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 09 February 2018 - 12:57 PM

View PostH4X0RZ, on 09 February 2018 - 12:34 PM, said:

Quantum > the chrome family :P

True for everything except flash games. There are too many good flash games.

#19 LoganDark2

  • Members
  • 87 posts
  • LocationYes

Posted 09 February 2018 - 12:58 PM

View PostLDDestroier, on 09 February 2018 - 12:57 PM, said:

View PostH4X0RZ, on 09 February 2018 - 12:34 PM, said:

Quantum > the chrome family :P

True [snip]

*gasp*

#20 Purple

  • Members
  • 115 posts
  • LocationAlone in the dark, looking at the pretty lights with dreams of things I can not have.

Posted 09 February 2018 - 02:12 PM

When I looked the term up before my last post, and I had to do it because all I got to my question about what it is was a repeat of the word without explanation so I had to manually look it up thus rendering me asking pointless and the reply anger inducing, the internet told me it was a thing for Microsoft Edge. And I don't use that.

Anyway, I don't really care anymore. Newer really cared either. Just wanted to know out of curiosity.

Edited by Purple, 09 February 2018 - 02:12 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users