Drumpfinator
Drumpfinator copied to clipboard
Add extra replacements?
Replace "Make America Great Again" with "Make Donald Drumpf Again". Will make your plugin more aligned to the LWT Chrome plugin.
The full list of replacements, taken from the Chrome plugin:
function handleText(textNode)
{
var v = textNode.nodeValue;
v = v.replace(/\bTrump\b/g, "Drumpf");
v = v.replace(/\bTRUMP\b/g, "DRUMPF");
v = v.replace(/\bTRUMPS\b/g, "DRUMPFS");
v = v.replace(/\bTrumps\b/g, "Drumpfs");
v = v.replace(/\bdonaldjtrump\b/g, "donaldjdrumpf");
v = v.replace(/\bdonaldtrump\b/g, "donalddrumpf");
v = v.replace(/\brealdonaldtrump\b/g, "realdonalddrumpf");
v = v.replace(/\brealDonaldTrump\b/g, "realDonaldDrumpf");
v = v.replace(/\bMake America Great Again\b/g, "Make Donald Drumpf Again");
v = v.replace(/\bMake America Great Again!\b/g, "Make Donald Drumpf Again!");
textNode.nodeValue = v;
}