// Run this script after the page is loaded
document.addEventListener("DOMContentLoaded", function () {
// Store your original page title so we can restore it later
var originalTitle = document.title;
// Listen for any change in tab visibility (e.g. when user clicks to another tab and comes back)
document.addEventListener("visibilitychange", function () {
// If the title starts with "(1)" (or any similar notification number)
if (document.title.startsWith("(")) {
// Reset it back to your original page title
document.title = originalTitle;
}
});
// Also check periodically in case Birdeye changes the title outside of tab visibility events
setInterval(function () {
if (document.title.startsWith("(")) {
document.title = originalTitle;
}
}, 500); // check every half a second
});