// ==UserScript==
// @name GotaFancyMessages
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Replace your boring messages by fancy ones ! Commands : //bold //italic //mono //default
// @author Zacharie Boumard (Zaxtre)
// @match http://gota.io/web/
// @grant Zaxtre
// ==/UserScript==
//Title
var para1 = document.createElement("p");var node1 = document.createTextNode(atob("LSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0="));para1.appendChild(node1);para1.style.color = "yellow";para1.style.fontSize = "15pt";para1.style.fontWeight = "900";para1.style.textAlign = "center";var element1 = document.getElementById("main-content");element1.appendChild(para1);
var para2 = document.createElement("p");var node2 = document.createTextNode(atob("R290YUZhbmN5TWVzc2FnZXMgYnkgWmF4dHJl"));para2.appendChild(node2);para2.style.color = "dodgerblue";para2.style.fontSize = "15pt";para2.style.fontWeight = "900";para2.style.textAlign = "center";var element2 = document.getElementById("main-content");element2.appendChild(para2);
var para3 = document.createElement("p");var node3 = document.createTextNode(atob("LSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0gLSAtIC0="));para3.appendChild(node3);para3.style.color = "yellow";para3.style.fontSize = "15pt";para3.style.fontWeight = "900";para3.style.textAlign = "center";var element3 = document.getElementById("main-content");element3.appendChild(para3);
//End title
var chatInput = document.getElementById("chat-input");var selectedStyle = 0;chatInput.onkeyup = function(){
if (chatInput.value.startsWith("//"))
{chatInput.style.color = "darkmagenta";switch (chatInput.value.substr(2).toLowerCase()){case "default" : selectedStyle = 0; chatInput.value = ""; break;case "bold" : selectedStyle = 1; chatInput.value = ""; break;case "italic" : selectedStyle = 2; chatInput.value = "";break;case "mono" : selectedStyle = 3; chatInput.value = "";}
}else { chatInput.style.color = "black"; }if (selectedStyle != 0 & !chatInput.value.startsWith('/')) getFancyText();};
function getFancyText()
{var fancyText = chatInput.value;switch (selectedStyle){case 1:
//Bold
//Letters
fancyText = fancyText.replace(/a/g,'?');
fancyText = fancyText.replace(/b/g,'?');
fancyText = fancyText.replace(/c/g,'?');
fancyText = fancyText.replace(/d/g,'?');
fancyText = fancyText.replace(/e/g,'?');
fancyText = fancyText.replace(/f/g,'?');
fancyText = fancyText.replace(/g/g,'?');
fancyText = fancyText.replace(/h/g,'?');
fancyText = fancyText.replace(/i/g,'?');
fancyText = fancyText.replace(/j/g,'?');
fancyText = fancyText.replace(/k/g,'?');
fancyText = fancyText.replace(/l/g,'?');
fancyText = fancyText.replace(/m/g,'?');
fancyText = fancyText.replace(/n/g,'?');
fancyText = fancyText.replace(/o/g,'?');
fancyText = fancyText.replace(/p/g,'?');
fancyText = fancyText.replace(/q/g,'?');
fancyText = fancyText.replace(/r/g,'?');
fancyText = fancyText.replace(/s/g,'?');
fancyText = fancyText.replace(/t/g,'?');
fancyText = fancyText.replace(/u/g,'?');
fancyText = fancyText.replace(/v/g,'?');
fancyText = fancyText.replace(/w/g,'?');
fancyText = fancyText.replace(/x/g,'?');
fancyText = fancyText.replace(/y/g,'?');
fancyText = fancyText.replace(/z/g,'?');
//Capital letters
fancyText = fancyText.replace(/A/g,'?');
fancyText = fancyText.replace(/B/g,'?');
fancyText = fancyText.replace(/C/g,'?');
fancyText = fancyText.replace(/D/g,'?');
fancyText = fancyText.replace(/E/g,'?');
fancyText = fancyText.replace(/F/g,'?');
fancyText = fancyText.replace(/G/g,'?');
fancyText = fancyText.replace(/H/g,'?');
fancyText = fancyText.replace(/I/g,'?');
fancyText = fancyText.replace(/J/g,'?');
fancyText = fancyText.replace(/K/g,'?');
fancyText = fancyText.replace(/L/g,'?');
fancyText = fancyText.replace(/M/g,'?');
fancyText = fancyText.replace(/N/g,'?');
fancyText = fancyText.replace(/O/g,'?');
fancyText = fancyText.replace(/P/g,'?');
fancyText = fancyText.replace(/Q/g,'?');
fancyText = fancyText.replace(/R/g,'?');
fancyText = fancyText.replace(/S/g,'?');
fancyText = fancyText.replace(/T/g,'?');
fancyText = fancyText.replace(/U/g,'?');
fancyText = fancyText.replace(/V/g,'?');
fancyText = fancyText.replace(/W/g,'?');
fancyText = fancyText.replace(/X/g,'?');
fancyText = fancyText.replace(/Y/g,'?');
fancyText = fancyText.replace(/Z/g,'?');
//Numbers
fancyText = fancyText.replace(/0/g,'?');
fancyText = fancyText.replace(/1/g,'?');
fancyText = fancyText.replace(/2/g,'?');
fancyText = fancyText.replace(/3/g,'?');
fancyText = fancyText.replace(/4/g,'?');
fancyText = fancyText.replace(/5/g,'?');
fancyText = fancyText.replace(/6/g,'?');
fancyText = fancyText.replace(/7/g,'?');
fancyText = fancyText.replace(/8/g,'?');
fancyText = fancyText.replace(/9/g,'?'); break;
case 2:
//Italic
//Letters
fancyText = fancyText.replace(/a/g,'?');
fancyText = fancyText.replace(/b/g,'?');
fancyText = fancyText.replace(/c/g,'?');
fancyText = fancyText.replace(/d/g,'?');
fancyText = fancyText.replace(/e/g,'?');
fancyText = fancyText.replace(/f/g,'?');
fancyText = fancyText.replace(/g/g,'?');
fancyText = fancyText.replace(/h/g,'?');
fancyText = fancyText.replace(/i/g,'?');
fancyText = fancyText.replace(/j/g,'?');
fancyText = fancyText.replace(/k/g,'?');
fancyText = fancyText.replace(/l/g,'?');
fancyText = fancyText.replace(/m/g,'?');
fancyText = fancyText.replace(/n/g,'?');
fancyText = fancyText.replace(/o/g,'?');
fancyText = fancyText.replace(/p/g,'?');
fancyText = fancyText.replace(/q/g,'?');
fancyText = fancyText.replace(/r/g,'?');
fancyText = fancyText.replace(/s/g,'?');
fancyText = fancyText.replace(/t/g,'?');
fancyText = fancyText.replace(/u/g,'?');
fancyText = fancyText.replace(/v/g,'?');
fancyText = fancyText.replace(/w/g,'?');
fancyText = fancyText.replace(/x/g,'?');
fancyText = fancyText.replace(/y/g,'?');
fancyText = fancyText.replace(/z/g,'?');
//Capital letters
fancyText = fancyText.replace(/A/g,'?');
fancyText = fancyText.replace(/B/g,'?');
fancyText = fancyText.replace(/C/g,'?');
fancyText = fancyText.replace(/D/g,'?');
fancyText = fancyText.replace(/E/g,'?');
fancyText = fancyText.replace(/F/g,'?');
fancyText = fancyText.replace(/G/g,'?');
fancyText = fancyText.replace(/H/g,'?');
fancyText = fancyText.replace(/I/g,'?');
fancyText = fancyText.replace(/J/g,'?');
fancyText = fancyText.replace(/K/g,'?');
fancyText = fancyText.replace(/L/g,'?');
fancyText = fancyText.replace(/M/g,'?');
fancyText = fancyText.replace(/N/g,'?');
fancyText = fancyText.replace(/O/g,'?');
fancyText = fancyText.replace(/P/g,'?');
fancyText = fancyText.replace(/Q/g,'?');
fancyText = fancyText.replace(/R/g,'?');
fancyText = fancyText.replace(/S/g,'?');
fancyText = fancyText.replace(/T/g,'?');
fancyText = fancyText.replace(/U/g,'?');
fancyText = fancyText.replace(/V/g,'?');
fancyText = fancyText.replace(/W/g,'?');
fancyText = fancyText.replace(/X/g,'?');
fancyText = fancyText.replace(/Y/g,'?');
fancyText = fancyText.replace(/Z/g,'?');
//Numbers
fancyText = fancyText.replace(/0/g,'0');
fancyText = fancyText.replace(/1/g,'1');
fancyText = fancyText.replace(/2/g,'2');
fancyText = fancyText.replace(/3/g,'3');
fancyText = fancyText.replace(/4/g,'4');
fancyText = fancyText.replace(/5/g,'5');
fancyText = fancyText.replace(/6/g,'6');
fancyText = fancyText.replace(/7/g,'7');
fancyText = fancyText.replace(/8/g,'8');
fancyText = fancyText.replace(/9/g,'9'); break;
case 3:
//Mono
//Letters
fancyText = fancyText.replace(/a/g,'?');
fancyText = fancyText.replace(/b/g,'?');
fancyText = fancyText.replace(/c/g,'?');
fancyText = fancyText.replace(/d/g,'?');
fancyText = fancyText.replace(/e/g,'?');
fancyText = fancyText.replace(/f/g,'?');
fancyText = fancyText.replace(/g/g,'?');
fancyText = fancyText.replace(/h/g,'?');
fancyText = fancyText.replace(/i/g,'?');
fancyText = fancyText.replace(/j/g,'?');
fancyText = fancyText.replace(/k/g,'?');
fancyText = fancyText.replace(/l/g,'?');
fancyText = fancyText.replace(/m/g,'?');
fancyText = fancyText.replace(/n/g,'?');
fancyText = fancyText.replace(/o/g,'?');
fancyText = fancyText.replace(/p/g,'?');
fancyText = fancyText.replace(/q/g,'?');
fancyText = fancyText.replace(/r/g,'?');
fancyText = fancyText.replace(/s/g,'?');
fancyText = fancyText.replace(/t/g,'?');
fancyText = fancyText.replace(/u/g,'?');
fancyText = fancyText.replace(/v/g,'?');
fancyText = fancyText.replace(/w/g,'?');
fancyText = fancyText.replace(/x/g,'?');
fancyText = fancyText.replace(/y/g,'?');
fancyText = fancyText.replace(/z/g,'?');
//Capital letters
fancyText = fancyText.replace(/A/g,'?');
fancyText = fancyText.replace(/B/g,'?');
fancyText = fancyText.replace(/C/g,'?');
fancyText = fancyText.replace(/D/g,'?');
fancyText = fancyText.replace(/E/g,'?');
fancyText = fancyText.replace(/F/g,'?');
fancyText = fancyText.replace(/G/g,'?');
fancyText = fancyText.replace(/H/g,'?');
fancyText = fancyText.replace(/I/g,'?');
fancyText = fancyText.replace(/J/g,'?');
fancyText = fancyText.replace(/K/g,'?');
fancyText = fancyText.replace(/L/g,'?');
fancyText = fancyText.replace(/M/g,'?');
fancyText = fancyText.replace(/N/g,'?');
fancyText = fancyText.replace(/O/g,'?');
fancyText = fancyText.replace(/P/g,'?');
fancyText = fancyText.replace(/Q/g,'?');
fancyText = fancyText.replace(/R/g,'?');
fancyText = fancyText.replace(/S/g,'?');
fancyText = fancyText.replace(/T/g,'?');
fancyText = fancyText.replace(/U/g,'?');
fancyText = fancyText.replace(/V/g,'?');
fancyText = fancyText.replace(/W/g,'?');
fancyText = fancyText.replace(/X/g,'?');
fancyText = fancyText.replace(/Y/g,'?');
fancyText = fancyText.replace(/Z/g,'?');
//Numbers
fancyText = fancyText.replace(/0/g,'?');
fancyText = fancyText.replace(/1/g,'?');
fancyText = fancyText.replace(/2/g,'?');
fancyText = fancyText.replace(/3/g,'?');
fancyText = fancyText.replace(/4/g,'?');
fancyText = fancyText.replace(/5/g,'?');
fancyText = fancyText.replace(/6/g,'?');
fancyText = fancyText.replace(/7/g,'?');
fancyText = fancyText.replace(/8/g,'?');
fancyText = fancyText.replace(/9/g,'?');
}
chatInput.value = fancyText;
}