if(window.location.href.includes('forum.newrelic.com')){ let newURL = window.location.href.replace('forum.newrelic.com', 'support.newrelic.com'); window.open(newURL, "_self"); } const myInterval = setInterval(showOsanoDrawer, 1000); const myInterval2 = setInterval(updateOsanoMessage, 1000); function showOsanoDrawer() { var privacyLink = document.querySelector('.privacy-policy-link'); if(privacyLink){ document.querySelector('.privacy-policy-link').addEventListener('click', (e) => { Osano.cm.showDrawer('osano-cm-dom-info-dialog-open'); }); } } function updateOsanoMessage() { Osano.cm.addEventListener('osano-cm-initialized', () => { clearInterval(myInterval2); const osanoMessage = document.querySelector('.osano-cm-content__message.osano-cm-message'); if (!osanoMessage) { return; } const privacyLinkElement = document.querySelector('.osano-cm-storage-policy'); if (!privacyLinkElement) { return; } const privacyLinkHTML = privacyLinkElement.outerHTML; const replacements = { 'Privacy Notice': privacyLinkHTML, 'Website Terms of Use': '', }; Object.entries(replacements).forEach(([text, replacementHTML]) => { osanoMessage.innerHTML = osanoMessage.innerHTML.replace(text, replacementHTML); }); if (osanoMessage.innerHTML.includes(privacyLinkHTML)) { privacyLinkElement.style.display = 'none'; privacyLinkElement.classList.add('hiddenOsanoLink'); } }); } //SC2-1719: Display a Warning Message when Leaving the Site const isElementLoaded = async selector => { while ( document.querySelector(selector) === null) { await new Promise( resolve => requestAnimationFrame(resolve) ) } return document.querySelector(selector); }; function checkForElement() { isElementLoaded('.richtextlink').then((selector) => { document.querySelectorAll(".richtextlink").forEach((el) => { el.href = 'void(0)'; el.onclick = function(event) { if(!el.getAttribute("data-url").toLowerCase().includes("newrelic.com")) { event.preventDefault(); const confirm = window.confirm("You will now be redirected to:\n\n" + el.getAttribute("data-url")); if (confirm) { window.open(el.getAttribute("data-url"), "_blank"); } else { event.preventDefault(); } } else { window.open(el.getAttribute("data-url"), "_blank"); } } el.oncontextmenu = function(event) { el.href = el.getAttribute("data-url"); } el.onauxclick = function(event) { el.href = el.getAttribute("data-url"); } }); }); } if(window.location.pathname.includes('/hubtopic/')){ const attachListener = setInterval(checkForElement, 1000); }
Loading
×Sorry to interrupt
CSS Error
Refresh
Skip to Main Content
Support Logo
  • New Topic
  • Groups
  • Support
    Run DiagnosticsSystem StatusDocumentationContact Support
Sign in
search
SupportSupport Forum
Knowledge Base
Contact Support
Get started today for free.

Sign Up
Get Demo
Loading