Edit only on HTML mode! a[href*="linktobereplaced"] { opacity: 0.5; pointer-events: none; } window.onload = function() { const paradoxLinks = document.querySelectorAll('a[href*="linktobereplaced"]'); paradoxLinks.forEach(link => { link.href = "javascript:launchParadox();"; link.style.opacity = "0.5"; link.style.pointerEvents = "none"; }); /* = = = = = = = = = = = = = = = = = = = = = = = = = = = Custom HTML module containing the load of the Paradox widget the launch snippet and hiding of the bubble = = = = = = = = = = = = = = = = = = = = = = = = = = = = */ // The Script from Paradox (function(o,l) { window.oliviaChatData = window.oliviaChatData || []; window.oliviaChatBaseUrl = o; window.oliviaChatData.push(['setKey', l]); window.oliviaChatData.push(['start']); var apply = document.createElement('script'); apply.type = 'text/javascript'; apply.async = true; apply.src = 'https://dokumfe7mps0i.cloudfront.net/static/site/js/widget-client.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(apply, s); })('https://olivia.paradox.ai', 'dfzmidthxagabeqvdeex'); // Creates the cookie to keep the Paradox bubble minimized document.cookie = "_apply_visible=min; Secure; path=/"; // Observes the dom to hide the Paradox bubble const targetNode = document.body; const config = { childList: true, subtree: true }; const callback = (mutationList, observer) => { for (const mutation of mutationList) { if (mutation.type === 'childList') { // Check if your element appeared const applyWidget = document.querySelector('apply-widget'); if (applyWidget && applyWidget.shadowRoot) { // Target the specific class within the shadow root const targetElement = applyWidget.shadowRoot.querySelector('.el-popover__reference-wrapper'); if (targetElement) { targetElement.style.visibility = 'hidden'; // Enables the button setTimeout(() => { paradoxLinks.forEach(link => { link.style.opacity = "1"; link.style.pointerEvents = "auto"; }); }, 500); observer.disconnect(); } } } } }; const observer = new MutationObserver(callback); observer.observe(targetNode, config); } function launchParadox() { document.querySelector('.apply-messenger-launcher').click(); }