Skip to content

Commit 671e67c

Browse files
committed
Fix file indention
1 parent 02185d0 commit 671e67c

6 files changed

Lines changed: 716 additions & 716 deletions

File tree

src/aviaclientcategory.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
(function(){
2-
if(window.__AVIA_CATEGORY_SETTINGS__) return;
3-
window.__AVIA_CATEGORY_SETTINGS__ = true;
2+
if(window.__AVIA_CATEGORY_SETTINGS__) return;
3+
window.__AVIA_CATEGORY_SETTINGS__ = true;
44

5-
function inject(){
5+
function inject(){
66

7-
if(document.getElementById('avia-cloned-settings')) return;
7+
if(document.getElementById('avia-cloned-settings')) return;
88

9-
const spans = [...document.querySelectorAll('span')];
10-
const target = spans.find(s => s.textContent.trim() === "User Settings");
11-
if(!target) return;
9+
const spans = [...document.querySelectorAll('span')];
10+
const target = spans.find(s => s.textContent.trim() === "User Settings");
11+
if(!target) return;
1212

13-
const container = target.closest('.d_flex.flex-d_column');
14-
if(!container) return;
13+
const container = target.closest('.d_flex.flex-d_column');
14+
if(!container) return;
1515

16-
const clone = container.cloneNode(true);
17-
clone.id = "avia-cloned-settings";
16+
const clone = container.cloneNode(true);
17+
clone.id = "avia-cloned-settings";
1818

19-
const header = clone.querySelector('span');
20-
if(header) header.textContent = "AVIA CLIENT SETTINGS";
19+
const header = clone.querySelector('span');
20+
if(header) header.textContent = "AVIA CLIENT SETTINGS";
2121

22-
const list = clone.querySelector('.d_flex.flex-d_column.gap_var\\(--gap-s\\)');
23-
if(list) list.innerHTML = "";
22+
const list = clone.querySelector('.d_flex.flex-d_column.gap_var\\(--gap-s\\)');
23+
if(list) list.innerHTML = "";
2424

25-
container.parentNode.insertBefore(clone, container.nextSibling);
26-
}
25+
container.parentNode.insertBefore(clone, container.nextSibling);
26+
}
2727

28-
new MutationObserver(() => {
29-
inject();
30-
}).observe(document.body, { childList: true, subtree: true });
28+
new MutationObserver(() => {
29+
inject();
30+
}).observe(document.body, { childList: true, subtree: true });
3131

32-
inject();
32+
inject();
3333

34-
})();
34+
})();

0 commit comments

Comments
 (0)