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