Advertisement
Guest User

Untitled

a guest
Apr 10th, 2025
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.60 KB | None | 0 0
  1. // ==UserScript==
  2. // @name :3
  3. // @namespace colon_three_owot
  4. // @version 1.0.2
  5. // @description :3 :3 :3
  6. // @author Helloim0_0
  7. // @match https://ourworldoftext.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=ourworldoftext.com
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. window.textToMeow = function(text) {
  13. if (!text) return "";
  14. text = text.replace(/[wW]?[lr][wW]?/g, "w").replace(/[wW]?[LR][wW]?/g, "W").replace(/(\s)$/, " :3$1");
  15. if (!/ :3\s$/.test(text)) text += " :3";
  16. return text;
  17. }
  18. function accessChild(element, indexes) {
  19. indexes = indexes.split(" ");
  20. for (let i of indexes) {
  21. element = element.childNodes[Number(i)];
  22. if (!element) return undefined;
  23. }
  24. return element;
  25. }
  26. function changeGoOrCancel(element) {
  27. accessChild(element, "0 0").textContent = "Meow";
  28. element.childNodes[1].textContent = " ow ";
  29. accessChild(element, "2 0").textContent = "meow :3";
  30. }
  31. window.modOldMessages = function() {
  32. chatRecordsPage.forEach(x => {
  33. var offset = 0;
  34. if (x.element.childElementCount == 3) {
  35. offset++;
  36. x.element.children[0].innerText = "(Meow) ";
  37. }
  38. x.element.children[offset].innerText = ":3c";
  39. x.element.children[offset + 1].innerText = " :3";
  40. 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)");
  41. });
  42. chatRecordsGlobal.forEach(x => {
  43. var offset = 0;
  44. if (x.element.childElementCount == 3) {
  45. offset++;
  46. x.element.children[0].innerText = "(Meow) ";
  47. }
  48. x.element.children[offset].innerText = ":3c";
  49. x.element.children[offset + 1].innerText = " :3";
  50. 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)");
  51. });
  52. }
  53. w.on("chatmod", function (e) {
  54. e.message = ":3";
  55. });
  56. byId("chat_page_tab").childNodes[0].textContent = "Meow meow";
  57. byId("chat_global_tab").childNodes[0].textContent = "Meow";
  58. byId("chatsend").innerText = "Meow";
  59. byId("chat_close").innerText = ":3";
  60. if (byId("chat_open").style.display == "none") modOldMessages();
  61. accessChild(byId("chat_open"), "1 0").textContent = "Meow";
  62. Function(String(insertNewChatElements).replace("function insertNewChatElements", "insertNewChatElements = function").replace("l);\n\t}", "l);\n\t}\n\tmodOldMessages();"))();
  63. Function(String(renderChar).replace("function renderChar", "renderChar = function").replace("fillText(char", "fillText(charX % 2 ? ':' : '3'"))();
  64. w.redraw();
  65. 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);"))();
  66. Function(String(updateAutoProg).replace("function updateAutoProg", "updateAutoProg = function").replace("remaining", "wemaining :3"))();
  67. 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"'))();
  68. Function(String(updateUserCount).replace("function updateUserCount", "updateUserCount = function").replace(/"user(s?)"/g, '"meower$1"').replace('online"', 'meowing :3"'))();
  69. updateUserCount();
  70. Function("w.doAnnounce = " + String(w.doAnnounce).replace("{", "{\t\ttext = textToMeow(text);"))();
  71. Function(String(disableBgColorPicker).replace("function disableBgColorPicker", "disableBgColorPicker = function").replace("[ None ]", "no thx :3"))();
  72. if (window.colorInputBg && !colorInputBg.jscolor.refine) colorInputBg.value = "no thx :3";
  73. byId("menu").children[1].innerText = "Meow";
  74. var menuButtons = byId("nav").children[0].children;
  75. for (var option of menuButtons) {
  76. for (var text of [...option.children[0].childNodes].filter(x => x.nodeName == "#text")) {
  77. text.textContent = textToMeow(text.textContent);
  78. }
  79. }
  80. menuButtons[15].children[0].title = "ₛₘₒₗ ow\n██░░███░████\n█░█░░█░░█░░░\n██░░░█░░█░██\n█░█░░█░░█░░█\n██░░███░████ :3";
  81. 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));
  82. 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"];
  83. for (var i = 0; i < modalStrings.length; i++) {
  84. var child = accessChild(byId("modal_overlay"), modalStringChilds[i]);
  85. if (child) child.textContent = modalStrings[i];
  86. }
  87. for (var i = 1; i <= 5; i++) {
  88. var child = accessChild(byId("modal_overlay"), "3 2 2 0");
  89. if (child) child.children[i - 1].title = `fwiend ${i} :3`;
  90. }
  91. var child = accessChild(byId("modal_overlay"), "3 2 2 0 5");
  92. if (child) child.title = "wtf is this!!! :3";
  93. for (var i = 1; i <= 6; i++) {
  94. var child = accessChild(byId("modal_overlay"), "3 3 2 1");
  95. if (child) child.children[i - 1].title = `decoration ${i} :3`;
  96. }
  97. var child = accessChild(byId("modal_overlay"), "3 3 2 1 6");
  98. if (child) child.title = "no thx :3";
  99. var modalStringChilds2 = ["0 1 0 2", "1 1 0 2", "2 1 0 2", "3 1 0 2", "3 2 0 2"];
  100. for (var i = 0; i < modalStringChilds2.length; i++) {
  101. var child = accessChild(byId("modal_overlay"), modalStringChilds2[i]);
  102. if (child) changeGoOrCancel(child);
  103. }
  104. var eraseStringChilds = ["1 0", "3 2", "5 2", "7 2", "11 2", "13 0"];
  105. for (var i = 0; i < eraseStringChilds.length; i++) {
  106. var child = accessChild(byId("erase_region"), eraseStringChilds[i]);
  107. if (child) child.textContent = textToMeow(child.textContent);
  108. }
  109. var protectStrings = ["Meowers-only type", "Big letter", "Letter", "Select"].map(x => textToMeow(x));
  110. var protectStringChilds = ["1 0", "3 0", "5 0", "7 0"];
  111. for (var i = 0; i < protectStrings.length; i++) {
  112. var child = accessChild(byId("protect_precision"), protectStringChilds[i]);
  113. if (child) child.textContent = protectStrings[i];
  114. }
  115. byId("text_deco_b").childNodes[0].textContent = ":3";
  116. byId("text_deco_i").childNodes[0].textContent = ":3";
  117. byId("text_deco_u").childNodes[0].textContent = ":3";
  118. byId("text_deco_s").childNodes[0].textContent = ":3";
  119. accessChild(document.getElementsByClassName("longpress-container")[0], "0 0 0").textContent = "Copy :3";
  120. accessChild(byId("coords"), "5 0").textContent = "\n\t\t\t\tcat:\n\t\t\t\t";
  121. byId("cursor_off").innerText = "no cat 3:";
  122. document.title = textToMeow(document.title);
  123. byId("loading").innerText = "Meowing...";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement