From d6932130c4b61f5c9cc8847c77a7978bb56f4891 Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Wed, 11 Mar 2026 18:44:17 -0400 Subject: [PATCH] Add files via upload Signed-off-by: AvaLilac --- src/aviaversion.js | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/aviaversion.js diff --git a/src/aviaversion.js b/src/aviaversion.js new file mode 100644 index 0000000..1396b7c --- /dev/null +++ b/src/aviaversion.js @@ -0,0 +1,41 @@ +(function () { + +if (window.__AVIA_VERSION_PATCH__) return; +window.__AVIA_VERSION_PATCH__ = true; + +function patchVersion() { + + document + .querySelectorAll("span.lh_1rem.fs_0\\.75rem.ls_0\\.03125rem.fw_500") + .forEach(el => { + + if (el.dataset.aviaPatched) return; + + const match = el.textContent.match(/Stoat for Desktop\s+([0-9.]+)/); + + if (!match) return; + + const stoatVersion = match[1]; + + el.dataset.aviaPatched = "true"; + + el.innerHTML = ` + Avia Client Desktop
+ + Based on Stoat ${stoatVersion} + + `; + }); + +} + +const observer = new MutationObserver(patchVersion); + +observer.observe(document.body, { + childList: true, + subtree: true +}); + +patchVersion(); + +})();