From 3a4788c31cf6f3f6ba8377c3167422be30d2e760 Mon Sep 17 00:00:00 2001 From: Suss <167750109+therealsuss@users.noreply.github.com> Date: Sat, 17 May 2025 17:07:08 +1000 Subject: [PATCH] begone --- mods/sand.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 mods/sand.js diff --git a/mods/sand.js b/mods/sand.js deleted file mode 100644 index 66fc5002..00000000 --- a/mods/sand.js +++ /dev/null @@ -1,33 +0,0 @@ -//remove all except sand -runAfterLoad(function() { - for (var elem in elements) { - if (elem !== "sand") { - delete elements[elem]; - } - } -}); - -runAfterLoad(function() { - // replace the text sandboxels - document.body.innerHTML = document.body.innerHTML.replace(/(?!]*>)(sandboxels)(?![^<]*<\/a>)/gi, "Sand"); - - // silly link stuff so it doesn't go to the wrong page - var links = document.querySelectorAll('a'); - links.forEach(function(link) { - var originalHref = link.href; - if (originalHref.includes("sand") && !originalHref.includes("sandboxels")) { - var newHref = originalHref.replace(/sand/gi, "sandboxels"); - link.href = newHref; // update link - } - }); - - // replace the other stuff - document.body.innerHTML = document.body.innerHTML - .replace(/over 500 unique elements/gi, "1 whole element") - .replace(/There are thousands of interactions between the many materials, plants, animals, fluids, and powders in the game\./gi, "There are no interactions in the game except collision.") - .replace(/a category,\s*like\s*Liquids<\/strong>,\s*then\s*pick\s*an\s*element,\s*like\s*Water<\/strong>\./gi, "sand.") - .replace(/biology, chemistry, ecology, geology, cooking, and even virology. There are countless aspects to discover\./gi, "sand."); -}); -// no categories because why would we need that for one pixel type -elements.sand.category = "tools"; -// honestly i should've just not made it replace the text but wheres the fun in that \ No newline at end of file