From 84ecbc5233d6659ed625757d149c868add36ad33 Mon Sep 17 00:00:00 2001 From: AvaLilac Date: Wed, 18 Mar 2026 11:59:17 -0400 Subject: [PATCH] Add files via upload Signed-off-by: AvaLilac --- src/aviaclientcategory.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/aviaclientcategory.js diff --git a/src/aviaclientcategory.js b/src/aviaclientcategory.js new file mode 100644 index 0000000..36b9fea --- /dev/null +++ b/src/aviaclientcategory.js @@ -0,0 +1,34 @@ +(function(){ +if(window.__AVIA_CATEGORY_SETTINGS__) return; +window.__AVIA_CATEGORY_SETTINGS__ = true; + +function inject(){ + + if(document.getElementById('avia-cloned-settings')) return; + + const spans = [...document.querySelectorAll('span')]; + const target = spans.find(s => s.textContent.trim() === "User Settings"); + if(!target) return; + + const container = target.closest('.d_flex.flex-d_column'); + if(!container) return; + + const clone = container.cloneNode(true); + clone.id = "avia-cloned-settings"; + + const header = clone.querySelector('span'); + if(header) header.textContent = "AVIA CLIENT SETTINGS"; + + const list = clone.querySelector('.d_flex.flex-d_column.gap_var\\(--gap-s\\)'); + if(list) list.innerHTML = ""; + + container.parentNode.insertBefore(clone, container.nextSibling); +} + +new MutationObserver(() => { + inject(); +}).observe(document.body, { childList: true, subtree: true }); + +inject(); + +})(); \ No newline at end of file