by
document.addEventListener("DOMContentLoaded", function(){ if(document.body.classList.contains("logged-in")) return; // don't show if logged in setTimeout(function(){ const loginLink = document.querySelector("a.bp-login-popup-link"); if (loginLink) loginLink.click(); // open BuddyBoss login modal }, 2000); });