console.log('custom_scripts') if (location.href.includes('/join')) { location.href = 'https://singerskills.com/pages/choose-your-membership' } if (location.href.includes('/dashboard/billing')) { location.href = 'https://singerskills.com/pages/how-to-cancel' } let detectGetAccessButton = () => { let button = document.querySelector('.access-screen__content a[data-test="button-access"]'); if (button) { if (!button.classList.value.includes('touched')) { button.href = 'https://singerskills.com/pages/choose-your-membership' button.classList.add('touched') } } let DashBoardLink = document.querySelector('li[to="/dashboard/billing"] a.b-tabs-nav-item') if (DashBoardLink) { DashBoardLink.insertAdjacentHTML('afterEnd', 'Billing') DashBoardLink.remove() } setTimeout(() => detectGetAccessButton(), 500) } detectGetAccessButton()