Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name :3
- // @namespace colon_three_owot
- // @version 1.0.2
- // @description :3 :3 :3
- // @author Helloim0_0
- // @match https://ourworldoftext.com/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=ourworldoftext.com
- // @grant none
- // ==/UserScript==
- window.textToMeow = function(text) {
- if (!text) return "";
- text = text.replace(/[wW]?[lr][wW]?/g, "w").replace(/[wW]?[LR][wW]?/g, "W").replace(/(\s)$/, " :3$1");
- if (!/ :3\s$/.test(text)) text += " :3";
- return text;
- }
- function accessChild(element, indexes) {
- indexes = indexes.split(" ");
- for (let i of indexes) {
- element = element.childNodes[Number(i)];
- if (!element) return undefined;
- }
- return element;
- }
- function changeGoOrCancel(element) {
- accessChild(element, "0 0").textContent = "Meow";
- element.childNodes[1].textContent = " ow ";
- accessChild(element, "2 0").textContent = "meow :3";
- }
- window.modOldMessages = function() {
- chatRecordsPage.forEach(x => {
- var offset = 0;
- if (x.element.childElementCount == 3) {
- offset++;
- x.element.children[0].innerText = "(Meow) ";
- }
- x.element.children[offset].innerText = ":3c";
- x.element.children[offset + 1].innerText = " :3";
- x.element.children[offset].title = x.element.children[offset].title.replace(/ID \d+;/, ":3 :3;3").replace("Operator;", "meower :3;3").replace(/Username "[^"]+";/, ':3 ":3";3').replace(/\(.+\)/, "(:333 :3 :3 3:33 :3)");
- });
- chatRecordsGlobal.forEach(x => {
- var offset = 0;
- if (x.element.childElementCount == 3) {
- offset++;
- x.element.children[0].innerText = "(Meow) ";
- }
- x.element.children[offset].innerText = ":3c";
- x.element.children[offset + 1].innerText = " :3";
- x.element.children[offset].title = x.element.children[offset].title.replace(/ID \d+;/, ":3 :3;3").replace("Operator;", "meower :3;3").replace(/Username "[^"]+";/, ':3 ":3";3').replace(/\(.+\)/, "(:333 :3 :3 3:33 :3)");
- });
- }
- w.on("chatmod", function (e) {
- e.message = ":3";
- });
- byId("chat_page_tab").childNodes[0].textContent = "Meow meow";
- byId("chat_global_tab").childNodes[0].textContent = "Meow";
- byId("chatsend").innerText = "Meow";
- byId("chat_close").innerText = ":3";
- if (byId("chat_open").style.display == "none") modOldMessages();
- accessChild(byId("chat_open"), "1 0").textContent = "Meow";
- Function(String(insertNewChatElements).replace("function insertNewChatElements", "insertNewChatElements = function").replace("l);\n\t}", "l);\n\t}\n\tmodOldMessages();"))();
- Function(String(renderChar).replace("function renderChar", "renderChar = function").replace("fillText(char", "fillText(charX % 2 ? ':' : '3'"))();
- w.redraw();
- Function(String(updateHoveredLink).replace("function updateHoveredLink", "updateHoveredLink = function").replace("Link to URL", "Wink to UWW :3").replace("Link to coordinates", "Wink to coowdinates :3").replace("m();", "m();\n\t\ttooltip = textToMeow(tooltip);"))();
- Function(String(updateAutoProg).replace("function updateAutoProg", "updateAutoProg = function").replace("remaining", "wemaining :3"))();
- Function(String(alertJS).replace("function alertJS", "alertJS = function").replace("This is a snippet of possibly untrusted JavaScript code.", "This is a snippet of possibwy untwusted JavaScwipt code. :3").replace("Copy & Close", "Copy & Cwose :3").replace("Are you sure you want to run this javascript link?<br>Press Close to <i>not</i> run it.", "Awe you suwe you want to wun this javascwipt wink? Pwess Cwose to <i>not</i> wun it. :3").replace('"run"', '"wun :3"'))();
- Function(String(updateUserCount).replace("function updateUserCount", "updateUserCount = function").replace(/"user(s?)"/g, '"meower$1"').replace('online"', 'meowing :3"'))();
- updateUserCount();
- Function("w.doAnnounce = " + String(w.doAnnounce).replace("{", "{\t\ttext = textToMeow(text);"))();
- Function(String(disableBgColorPicker).replace("function disableBgColorPicker", "disableBgColorPicker = function").replace("[ None ]", "no thx :3"))();
- if (window.colorInputBg && !colorInputBg.jscolor.refine) colorInputBg.value = "no thx :3";
- byId("menu").children[1].innerText = "Meow";
- var menuButtons = byId("nav").children[0].children;
- for (var option of menuButtons) {
- for (var text of [...option.children[0].childNodes].filter(x => x.nodeName == "#text")) {
- text.textContent = textToMeow(text.textContent);
- }
- }
- menuButtons[15].children[0].title = "ₛₘₒₗ ow\n██░░███░████\n█░█░░█░░█░░░\n██░░░█░░█░██\n█░█░░█░░█░░█\n██░░███░████ :3";
- var modalStrings = ["put in some random numbers and idk click on something and magic", "rng 1", "rng 2", "warp magic:", "stuff outside of this world", "writing", "background writing", "pray this isnt stolen", " cool block around", " cool block around", ":3", "decoration+", "steal", " add gray if its finally one", " add even more!!", " copy hacks", " copy meowers-only places", " copy all places", " DECORATION!!!", " bye right side", " bye left side (sorry idk the directions)", " bye nothing lines", " bye spaces", " bye lines", " bye whatever surrogates are", " bye bunch of stuff together", "meow"].map(x => textToMeow(x));
- var modalStringChilds = ["0 1 0 0 0", "0 1 0 1 0 0", "0 1 0 1 2 0", "1 1 0 0 0", "2 1 0 1 0 0", "3 0 0 0", "3 0 1 0", "3 1 0 1 0 0", "3 2 0 0 1", "3 3 0 0 1", "3 3 2 0 5", "3 2 0 1 0 0", "4 1 0 0 0", "4 1 2 0 1", "4 1 2 1 1", "4 1 2 2 1", "4 1 2 3 1", "4 1 2 4 1", "4 1 2 5 1", "4 1 2 6 1", "4 1 2 7 1", "4 1 2 8 1", "4 1 2 9 1", "4 1 2 10 1", "4 1 2 11 1", "4 1 2 12 1", "4 1 3 0"];
- for (var i = 0; i < modalStrings.length; i++) {
- var child = accessChild(byId("modal_overlay"), modalStringChilds[i]);
- if (child) child.textContent = modalStrings[i];
- }
- for (var i = 1; i <= 5; i++) {
- var child = accessChild(byId("modal_overlay"), "3 2 2 0");
- if (child) child.children[i - 1].title = `fwiend ${i} :3`;
- }
- var child = accessChild(byId("modal_overlay"), "3 2 2 0 5");
- if (child) child.title = "wtf is this!!! :3";
- for (var i = 1; i <= 6; i++) {
- var child = accessChild(byId("modal_overlay"), "3 3 2 1");
- if (child) child.children[i - 1].title = `decoration ${i} :3`;
- }
- var child = accessChild(byId("modal_overlay"), "3 3 2 1 6");
- if (child) child.title = "no thx :3";
- var modalStringChilds2 = ["0 1 0 2", "1 1 0 2", "2 1 0 2", "3 1 0 2", "3 2 0 2"];
- for (var i = 0; i < modalStringChilds2.length; i++) {
- var child = accessChild(byId("modal_overlay"), modalStringChilds2[i]);
- if (child) changeGoOrCancel(child);
- }
- var eraseStringChilds = ["1 0", "3 2", "5 2", "7 2", "11 2", "13 0"];
- for (var i = 0; i < eraseStringChilds.length; i++) {
- var child = accessChild(byId("erase_region"), eraseStringChilds[i]);
- if (child) child.textContent = textToMeow(child.textContent);
- }
- var protectStrings = ["Meowers-only type", "Big letter", "Letter", "Select"].map(x => textToMeow(x));
- var protectStringChilds = ["1 0", "3 0", "5 0", "7 0"];
- for (var i = 0; i < protectStrings.length; i++) {
- var child = accessChild(byId("protect_precision"), protectStringChilds[i]);
- if (child) child.textContent = protectStrings[i];
- }
- byId("text_deco_b").childNodes[0].textContent = ":3";
- byId("text_deco_i").childNodes[0].textContent = ":3";
- byId("text_deco_u").childNodes[0].textContent = ":3";
- byId("text_deco_s").childNodes[0].textContent = ":3";
- accessChild(document.getElementsByClassName("longpress-container")[0], "0 0 0").textContent = "Copy :3";
- accessChild(byId("coords"), "5 0").textContent = "\n\t\t\t\tcat:\n\t\t\t\t";
- byId("cursor_off").innerText = "no cat 3:";
- document.title = textToMeow(document.title);
- byId("loading").innerText = "Meowing...";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement