// ==UserScript== // @name darflen pillowify // @namespace http://tampermonkey.net/ // @version 2026-03-29.1 // @description soggy soggy soggy soggy // @author fungifungus + obtanium/hi // @match *://darflen.com/* // @icon https://images.steamusercontent.com/ugc/54700621453949524/79AF86663A3B8DCE1FC9F96720678E9F11C8BA7E/ // @grant GM_setValue // @grant GM_getValue // ==/UserScript== (function() { 'use strict'; const soggy = "https://static.darflen.com/uploads/large/e33b62f93df374db19832952.webp" const soggybutton = document.createElement("li") soggybutton.style.backgroundImage = `url("${soggy}")` soggybutton.style.backgroundSize = "100% 100%" soggybutton.id = "DarflenSoggifysoggybutton" const soggyBtLnk = document.createElement("a") soggyBtLnk.className = "nav-button-text" soggybutton.append(soggyBtLnk) const soggyBtLnkName = document.createElement("span") soggyBtLnkName.className = "nav-name" soggyBtLnkName.textContent = "toggle soggy" soggyBtLnk.append(soggyBtLnkName) document.getElementById("nav-main-links").append(soggybutton) function soggify(soggyvictim) { if (GM_getValue("soggytoggle") == "1"){ document.querySelectorAll("img").forEach( soggyimg => { if (soggyimg.src.split('.').pop() === "svg"){soggyimg.style.width = soggyimg.width + "px" soggyimg.style.height = soggyimg.height + "px" soggyimg.style.objectFit = "fill" soggyimg.src = soggy} }); document.querySelectorAll("*").forEach( soggyelement => { if (soggyelement === soggybutton) return if ( // exceptions for having soggy background soggyelement.id !== "content" && soggyelement.tagName !== "SPAN" && soggyelement.id !== "post-comments-container" ) {soggyelement.style.backgroundImage = `url("${soggy}")`; if( // exceptions for having filled background (will be repeating background if listed here) soggyelement.id === "website" || soggyelement.className === "lb-modal" || soggyelement.id === "lb-image-modal" || soggyelement.className === "explore-bottom-section-container" || soggyelement.id === "profile-user-info" ){soggyelement.style.backgroundSize = "repeat"}else{soggyelement.style.backgroundSize = "100% 100%"} } soggyelement.style.fontFamily = "Comic Sans Ms" soggyelement.style.fontWeight = "bold" }); }} if (GM_getValue("soggytoggle") == "1") { if (document.documentElement.dataset.theme !== "night"){document.documentElement.dataset.theme = "night"} soggify(document) new MutationObserver((soggymutations) => { soggymutations.forEach(soggymutation => { soggymutation.addedNodes.forEach(soggynode => { if (soggynode.nodeType === 1) soggify(soggynode) }) }) }).observe(document.body, { childList: true, subtree: true }) } soggybutton.addEventListener("click", (event) => { if (GM_getValue("soggytoggle") !== "1"){ GM_setValue("soggytoggle", "1") }else{GM_setValue("soggytoggle", "0")} location.reload() }) //css injection time!! const soggyinjection = document.createElement("style") soggyinjection.textContent = ` #DarflenSoggifysoggybutton *:not(span) { background: url("${soggy}") !important; background-size: 100% 100% !important; font-family: "Comic Sans Ms" !important; font-weight: bold !important; } #DarflenSoggifysoggybutton span { font-family: "Comic Sans Ms" !important; font-weight: bold !important; color: var(--light-100, #fbfbfb) }` if (GM_getValue("soggytoggle") !== "1"){document.head.append(soggyinjection)} })();