Open HumAnTarg3t opened 9 months ago
// Get the button with the class "active" inside the div with the class "tabLinks"
const activeButton = document.querySelector(".tabLinks .active");
// Check if an active button was found
if (activeButton) {
// Get the inner text of the active button
const buttonText = activeButton.innerText;
document.title = `${buttonText}s chat`;
} else {
console.log('No button with class "active" found.');
}
"streamers" chat
something like that