6Enabled) => {
                    const dnscryptElements = document.querySelectorAll('.dnscrypt-related');
                    dnscryptElements.forEach(element => {
                        const isDependent = element.classList.contains('dnscrypt-dependent');
                        const shouldDisable = ipv6Enabled || (isDependent && !dnscryptEnabled);
                        element.classList.toggle('disabled', shouldDisable);
                        const inputs = element.querySelectorAll('input, .text-i