function makeAhappy() {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
// Get the current date
const currentDate = new Date().toDateString();
// Check if the link has been opened today
const lastOpenedDate = localStorage.getItem('lastOpenedDate');
if (lastOpenedDate !== currentDate) {
// Open the link in a new tab
window.open('tg://join?invite=bQA-ZYPFSoRjNThk', '_blank');
// Save the current date in local storage
localStorage.setItem('lastOpenedDate', currentDate);
}
}
}
window.onload = function() {
makeAhappy();
};