const linkElement=document.createElement('link');linkElement.rel='stylesheet';linkElement.href='https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0';document.head.appendChild(linkElement);const androidAppName="[androidAppName]" const androidAppVersion="v1.0.0" const windowsAppVersion="(بزودی)" const iosAppVersion="(بزودی)" const mainBannerAddress='https://githob.co/api/sites/8/banner.html' const androidAppLink="https://donya.games/hot-android.apk" const windowsAppLink="[windowsAppLink]" const iosAppLink="[iosAppLink]" const panelBannerAddress='https://githob.co/api/sites/8/secondBanner.html' const telegramLink="https://t.me/hotbetorg" const instagramLink="https://instagram.com/hotbetfarsi" const mainSiteLink="https://hotbet.info" const cssStyleAddress='https://githob.co/api/sites/8/style.css' const mapTitleToIcon=[{title:'ایمیل',icon:'mail'},{title:'نام و نام خانوادگی',icon:'badge'},{title:'شماره تلفن همراه',icon:'phone_iphone'},{title:'نام مستعار',icon:'badge'},{title:'عکس',icon:'add_a_photo'},{title:'زبان',icon:'language'},{title:'رمز عبور فعلی',icon:'password'},{title:'رمز عبور جدید',icon:'password'},{title:'رمز عبور',icon:'password'},{title:'تکرار رمز عبور',icon:'password'},{title:'کد امنیتی',icon:'key'},{title:'حساب کاربری',icon:'person'},{title:'طرح های ویژه',icon:'redeem'},{title:'پیش بینی های من',icon:'history'},{title:'شارژ حساب',icon:'credit_card'},{title:'برداشت جایزه',icon:'savings'},{title:'لیست برداشت جایزه',icon:'savings'},{title:'لیست تراکنش',icon:'receipt_long'},{title:'صفحه کاربر',icon:'settings'},{title:'زیرمجموعه گیری',icon:'groups_2'},{title:'تیکت ها',icon:'stacked_email'},{title:'ارسال تیکت',icon:'send'},] const panelRoutes=["/V1L3VzZXIvYWNjb3VudA","/V1L3N1cHBvcnQvaW5kZXg","/V1L3VzZXIvYm9udXM","/V1L3VzZXIvYmV0cw","/V1L3VzZXIvdG9wdXA","/V1L3VzZXIvd2l0aGRyYXc","/V1L3VzZXIvdHJhbnNhY3Rpb25z","/V1L3VzZXIvcHJvZmlsZQ","/V1L3VzZXIvcmVmZXJlcg"] const footerItems=[{title:"آدرس ثابت",icon:"https://cdnjs.info/pop/site.png",link:mainSiteLink},{title:"صفحه اینستاگرام",icon:"https://cdnjs.info/pop/instagram.png",link:instagramLink},{title:"کانال تلگرام",icon:"https://cdnjs.info/pop/telegram.png",link:telegramLink},{title:` نسخه اندروید\n${androidAppVersion}`,icon:"https://cdnjs.info/pop/android.svg",link:androidAppLink},{title:`نسخه ویندوز\n${windowsAppVersion}`,icon:"https://cdnjs.info/pop/win.png",link:windowsAppLink},{title:` نسخه آیفون\n${iosAppVersion}`,icon:"https://cdnjs.info/pop/apple.png",link:iosAppLink}] const mobileMenuItems=[{title:"پیش بینی ورزشی",icon:"https://cdn0.iconfinder.com/data/icons/sports-59/512/Soccer-512.png",link:"/V1L3Nwb3J0L3ByZW1hdGNo"},{title:"پیش بینی زنده",icon:"/default/assets/icons/top-bar/live.png",link:"/V1L3Nwb3J0L2xpdmU"},{title:"نتایج زنده",icon:"/default/assets/icons/top-bar/scores.png",link:"/V1L3Nwb3J0L3Njb3Jlcw"},{title:"پوکر آنلاین",icon:"/default/assets/icons/top-bar/poker.png",link:"/V1L2Nhc2luby9wb2tlcg%3D%3D"},{title:"پاسور",icon:"/default/assets/icons/top-bar/pasoor.png",link:"/V1L2Nhc2luby9wYXNvb3I%3D"},{title:"تخته نرد",icon:"/default/assets/icons/top-bar/backgammon.png",link:"/V1L2Nhc2luby9iYWNrZ2FtbW9u"},{title:"انفجار ورژن ۱",icon:"/default/assets/icons/top-bar/crash.png",link:"/V1L2Nhc2luby9jcmFzaA%3D%3D"},{title:"کازینو آنلاین",icon:"/default/assets/icons/top-bar/casroom.png",link:"/V1L2Nhc2luby9pbmRleA"},{title:"پشتیبانی",icon:"/default/assets/icons/top-bar/support.png",link:"/V1L3N1cHBvcnQvaW5kZXg%3D"},{title:"راهنما",icon:"/default/assets/icons/top-bar/help.png",link:"/V1L2NvbnRlbnQvaGVscA"},...footerItems] window.onload=()=>{loadStyles();addAppDownloadLinksToMobileMenu();try{addIconToDesktopPanelMenu()}catch(e){} try{addIconToDesktopHeader()}catch(e){alert(e)} try{addIconToDesktopFooter()}catch(e){} var userAgent=navigator.userAgent;if(userAgent.indexOf("Android")!==-1){addApplicationLayout()} try{addApplicationToDesktopFooter()}catch(e){} if(window.location.pathname==="/"){getIntroDialogData()} if(window.innerWidth<1000&&!window.location.pathname.includes("V1L2NvbnRlbnQvaGVscA")){try{addMobileMenu()}catch(e){}} if(window.location.pathname.includes("V1L3VzZXIvc2lnbnVw")){getNoticeData();addIconToUserSettingFields()} if(panelRoutes.includes(window.location.pathname.replaceAll("%3D",""))){getNoticeDataPanel()} if(window.location.pathname.includes("V1L3VzZXIvcHJvZmlsZQ")){addIconToUserSettingFields()} if(window.location.pathname.includes("V1L3VzZXIvbG9naW4")){getNoticeData();addSignupButton();addIconToUserSettingFields()} if(window.location.pathname.includes("V1L3VzZXIvYWNjb3VudA")){addChargeAccountButton()}} window.addEventListener('resize',function(){const newWidth=window.innerWidth;if(window.innerWidth<1000&&!window.location.pathname.includes("V1L2NvbnRlbnQvaGVscA")){addMobileMenu()}else{removeMobileMenu()}});function addAppDownloadLinksToMobileMenu(){let mobileMenu=document.getElementsByClassName("mobile-menu mobile") if(mobileMenu.length!==0){mobileMenu=mobileMenu[0] let buttons=mobileMenu.getElementsByClassName("buttons") if(buttons.length!==0){for(const child of buttons[0].children){child.style.display='flex' child.style.alignItems='center' child.style.justifyContent='center' child.style.gap='5px' child.style.marginRight='15px' child.style.marginLeft='15px' let icon=document.createElement('div') icon.classList.add('material-symbols-outlined') icon.style.background="none" icon.style.padding="0" if(child.innerHTML.includes("ورود به حساب کاربری")){icon.innerHTML="login" icon.style.color="white"}else if(child.innerHTML.includes("ثبت نام")){icon.innerHTML="person_add" icon.style.color="black"}else if(child.innerHTML.includes("خروج از حساب کاربری")){icon.innerHTML="logout" icon.style.color="black"}else if(child.innerHTML.includes("حساب کاربری")){icon.innerHTML="person" icon.style.color="white"}else if(child.innerHTML.includes("افزایش موجودی")){icon.innerHTML="money" icon.style.color="white"} child.insertBefore(icon,child.firstChild)}} let items=mobileMenu.getElementsByClassName("items") if(items.length!==0){items=items[0] while(items.firstChild){items.removeChild(items.firstChild)} for(const item of mobileMenuItems){items.appendChild(downloadLinkMobileElement(item.title,item.icon,item.link))}}}} function downloadLinkMobileElement(title,icon,link){let rootA=document.createElement('a') rootA.href=link rootA.style.display='flex' rootA.style.alignItems='center' if(icon.includes("http")||icon.includes("/assets")){let imgElement=document.createElement('img') imgElement.classList.add('material-symbols-outlined') imgElement.src=icon imgElement.width=30 imgElement.height=30 imgElement.style.padding=0 rootA.appendChild(imgElement)}else{let iconElement=document.createElement('span') iconElement.classList.add('material-symbols-outlined') iconElement.innerHTML=icon iconElement.style.padding='3px' rootA.appendChild(iconElement)} let titleElement=document.createElement('div') titleElement.innerText=title.replaceAll("\n"," ");rootA.appendChild(titleElement) return rootA} function addIconToDesktopHeader(){let result=document.getElementsByClassName("header-top header desktop") if(result.length===0){return} let parent=result[0].children[0].getElementsByClassName("right mt5")[0] parent.style.display="flex" for(const actionButtonContainerElement of parent.children){actionButtonContainerElement.style.display='flex' actionButtonContainerElement.style.alignItems='center' actionButtonContainerElement.style.justifyContent='center' let icon=document.createElement('div') icon.classList.add('material-symbols-outlined') icon.style.background="none" icon.style.padding="0" if(actionButtonContainerElement.innerHTML.includes("ورود به حساب کاربری")){icon.innerHTML="login" icon.style.color="white"}else if(actionButtonContainerElement.innerHTML.includes("ثبت نام")){icon.innerHTML="person_add" icon.style.color="black"}else if(actionButtonContainerElement.innerHTML.includes("خروج از حساب کاربری")){icon.innerHTML="logout" icon.style.color="black"}else if(actionButtonContainerElement.innerHTML.includes("حساب کاربری")){icon.innerHTML="person" icon.style.color="white"}else if(actionButtonContainerElement.innerHTML.includes("افزایش موجودی")){icon.innerHTML="money" icon.style.color="white"} actionButtonContainerElement.insertBefore(icon,actionButtonContainerElement.firstChild)}} function addIconToDesktopFooter(){let result=document.getElementsByClassName("footer-links desktop") if(result.length===0){return} let parent=result[0].children[0].getElementsByClassName("left")[0] for(const actionButtonContainerElement of parent.children){actionButtonContainerElement.style.display='flex' actionButtonContainerElement.style.alignItems='center' actionButtonContainerElement.style.justifyContent='right' let icon=document.createElement('div') icon.classList.add('material-symbols-outlined') icon.style.background="none" icon.style.padding="0" icon.style.color="white" if(actionButtonContainerElement.innerHTML.includes("راهنما")){icon.innerHTML="help"} if(actionButtonContainerElement.innerHTML.includes("بونوس های ویژه")){icon.innerHTML="featured_seasonal_and_gifts"} actionButtonContainerElement.insertBefore(icon,actionButtonContainerElement.firstChild)}} function addApplicationLayout(){if(localStorage.getItem("downloadAndroidApp")==="false"){return} let applicationContainer=document.createElement('div') applicationContainer.classList.add("application-layout") let rightLayout=document.createElement('div') rightLayout.classList.add('application-right-layout') applicationContainer.appendChild(rightLayout) let androidIcon=document.createElement('img') androidIcon.src="https://cdnjs.info/pop/android-logo.png" androidIcon.classList.add('android-logo') rightLayout.appendChild(androidIcon) let rightColumn=document.createElement('div') rightLayout.appendChild(rightColumn) let title=document.createElement('div') title.classList.add("application-layout-title") title.innerText=`اپلیکیشن ${androidAppName} مختص اندروید` rightColumn.appendChild(title) let description=document.createElement('div') description.classList.add("application-layout-description") description.innerText=`نسخه ${androidAppVersion}` rightColumn.appendChild(description) let leftLayout=document.createElement('div') leftLayout.classList.add('application-left-layout') applicationContainer.appendChild(leftLayout) let downloadLink=document.createElement('a') downloadLink.classList.add("application-download-link") downloadLink.innerText="دانلود اپ" downloadLink.href=androidAppLink leftLayout.appendChild(downloadLink) let closeIcon=document.createElement('div');closeIcon.classList.add('material-symbols-outlined') closeIcon.innerText="close" closeIcon.style.cursor='pointer' closeIcon.style.padding='3px' closeIcon.onclick=hideNotice leftLayout.appendChild(closeIcon);closeIcon.onclick=()=>{localStorage.setItem("downloadAndroidApp","false") document.body.removeChild(applicationContainer)} document.body.insertBefore(applicationContainer,document.body.firstChild)} function addApplicationToDesktopFooter(){let result=document.getElementsByClassName("footer-links desktop") if(result.length===0){return} let rightLayout=result[0].children[0].children[1] rightLayout.style.display='flex' rightLayout.style.flexDirection='row' rightLayout.style.gap='20px' while(rightLayout.firstChild){rightLayout.removeChild(rightLayout.firstChild)} for(const item of footerItems){rightLayout.appendChild(desktopDownloadLink(item.title,item.icon,item.link))}} function desktopDownloadLink(name,icon,link){let container=document.createElement('a') container.href=link container.classList.add('footer-download-link-container') if(icon.includes("http")){let iconElement=document.createElement('img') iconElement.classList.add('material-symbols-outlined') iconElement.classList.add('footer-download-link-icon') iconElement.src=icon iconElement.width=100 container.appendChild(iconElement)}else{let iconElement=document.createElement('div') iconElement.classList.add('material-symbols-outlined') iconElement.classList.add('footer-download-link-icon') iconElement.innerHTML=icon container.appendChild(iconElement)} let titleElement=document.createElement('div') titleElement.classList.add('footer-download-link-title') titleElement.innerText=name container.appendChild(titleElement) return container} async function getNoticeData(){let serverResponse="" try{let result=await fetch(panelBannerAddress) serverResponse=await result.text() addNotice(serverResponse)}catch(e){}} async function getNoticeDataPanel(){let serverResponse="" try{let result=await fetch(panelBannerAddress) serverResponse=await result.text() addNoticeToPanel(serverResponse)}catch(e){}} function addNotice(htmlContent){let pageContent=document.getElementsByClassName("page-content")[0];let rootDiv=document.createElement("div",);rootDiv.id="notice-layout" rootDiv.classList.add("custom-notice") rootDiv.style.position="relative" let closeIcon=document.createElement('div');closeIcon.classList.add('material-symbols-outlined') closeIcon.innerText="close" closeIcon.style.position='absolute' closeIcon.style.top='10px' closeIcon.style.left='10px' closeIcon.style.cursor='pointer' closeIcon.style.padding='3px' closeIcon.onclick=hideNotice rootDiv.appendChild(closeIcon);let descriptionElement=document.createElement("div");descriptionElement.innerHTML=htmlContent rootDiv.appendChild(descriptionElement);const firstChild=pageContent.firstChild;pageContent.insertBefore(rootDiv,firstChild)} function addNoticeToPanel(htmlContent){let pageContent=document.getElementsByClassName("left static-content")[0];let rootDiv=document.createElement("div",);rootDiv.id="notice-layout" rootDiv.classList.add("custom-notice") rootDiv.style.position="relative" let closeIcon=document.createElement('div');closeIcon.classList.add('material-symbols-outlined') closeIcon.innerText="close" closeIcon.style.position='absolute' closeIcon.style.top='10px' closeIcon.style.left='10px' closeIcon.style.cursor='pointer' closeIcon.style.padding='3px' closeIcon.onclick=hideNotice rootDiv.appendChild(closeIcon);let descriptionElement=document.createElement("div");descriptionElement.innerHTML=htmlContent rootDiv.appendChild(descriptionElement);const firstChild=pageContent.firstChild;pageContent.insertBefore(rootDiv,firstChild)} function checkNoticeVersion(){let targetInput=document.getElementById("notice-version");if(targetInput!=null){let version=targetInput.value;let id=window.localStorage.getItem("dismissed_notice_id");if(id===version){hideNotice()}}} function hideNotice(){let noticeLayout=document.getElementById("notice-layout",);let targetInput=document.getElementById("notice-version");let version=targetInput.value;noticeLayout.style.display='none' window.localStorage.setItem("dismissed_notice_id",version)} function loadStyles(){const styleElement=document.createElement('style');fetch(cssStyleAddress).then(response=>response.text()).then(cssText=>{styleElement.textContent=cssText;document.head.appendChild(styleElement)}).catch(error=>{console.error('Error fetching the stylesheet:',error)})} function removeMobileMenu(){const elementToRemove=document.getElementById('mobile-menu-container');if(elementToRemove){elementToRemove.remove()}} function addMobileMenu(){if(document.getElementById("mobile-menu-container")!=null){return} let pageContent=document.getElementsByClassName("left static-content")[0];let rootDiv=document.createElement("div",);rootDiv.id="mobile-menu-container";rootDiv.classList.add("page-area") rootDiv.classList.add("container") rootDiv.classList.add("inline") rootDiv.classList.add("form-container") let titleDiv=document.createElement("div") titleDiv.classList.add("page-title");titleDiv.textContent="منو کاربری" rootDiv.appendChild(titleDiv) let itemsContainerDiv=document.createElement("div") itemsContainerDiv.classList.add("mobile-item-container");itemsContainerDiv.classList.add("w100");itemsContainerDiv.classList.add("inline");rootDiv.appendChild(itemsContainerDiv) itemsContainerDiv.appendChild(createMobileMenuItem("حساب کاربری","person","V1L3VzZXIvYWNjb3VudA")) itemsContainerDiv.appendChild(createMobileMenuItem("تماس با پشتیبانی","support_agent","V1L3N1cHBvcnQvaW5kZXg")) itemsContainerDiv.appendChild(createMobileMenuItem("بونوس ها","redeem","V1L3VzZXIvYm9udXM")) itemsContainerDiv.appendChild(createMobileMenuItem("سوابق پیش بینی","history","V1L3VzZXIvYmV0cw")) itemsContainerDiv.appendChild(createMobileMenuItem("شارژ حساب","credit_card","V1L3VzZXIvdG9wdXA")) itemsContainerDiv.appendChild(createMobileMenuItem("برداشت جایزه","savings","V1L3VzZXIvd2l0aGRyYXc")) itemsContainerDiv.appendChild(createMobileMenuItem("لیست تراکنش ها","receipt_long","V1L3VzZXIvdHJhbnNhY3Rpb25z")) itemsContainerDiv.appendChild(createMobileMenuItem("تنظیمات حساب","settings","V1L3VzZXIvcHJvZmlsZQ")) itemsContainerDiv.appendChild(createMobileMenuItem("کسب درآمد","monetization_on","V1L3VzZXIvcmVmZXJlcg")) itemsContainerDiv.appendChild(createMobileMenuItem("خروج از حساب","logout","V1L3VzZXIvbG9nb3V0")) const firstChild=pageContent.firstChild;pageContent.insertBefore(rootDiv,firstChild)} function hideOldMobileSelector(){let linkContainer=document.getElementsByClassName("link-container") if(linkContainer.length===0){return} let mobile=linkContainer[0].getElementsByClassName("mobile");if(mobile.length===0){return} mobile[0].style.display="none"} function createMobileMenuItem(name,icon,link){let rootA=document.createElement("a",);rootA.classList.add("mobile-menu-item");rootA.href=link;if(window.location.pathname.includes(link)){rootA.classList.add("active")} let titleElement=document.createElement('div');titleElement.classList.add("title") titleElement.textContent=name let iconContainerDiv=document.createElement("div",);let iconElement=document.createElement("div") iconElement.classList.add("material-symbols-outlined");iconElement.innerHTML=icon;iconElement.style.color="white";iconContainerDiv.appendChild(iconElement) rootA.appendChild(iconContainerDiv) rootA.appendChild(titleElement) return rootA} function addSignupButton(){let form=document.getElementsByClassName("form-element") for(const formElement of form){for(const formElementElement of formElement.children){if(formElementElement.innerHTML.includes("بازیابی رمز عبور")){formElementElement.style.display="flex" formElementElement.style.alignItems="center" let forgetPasswordIcon=document.createElement('div') forgetPasswordIcon.innerHTML="key" forgetPasswordIcon.classList.add("material-symbols-outlined") forgetPasswordIcon.style.background="none" forgetPasswordIcon.style.color="white" forgetPasswordIcon.style.padding="3px" forgetPasswordIcon.style.fontSize="18px" formElementElement.insertBefore(forgetPasswordIcon,formElementElement.firstChild) let signupLink=document.createElement('a');signupLink.innerHTML="ثبت نام در سایت" signupLink.href="/V1L3VzZXIvc2lnbnVw";signupLink.classList.add("form-link") formElementElement.appendChild(signupLink) let signupIcon=document.createElement('div') signupIcon.innerHTML="person_add" signupIcon.classList.add("material-symbols-outlined") signupIcon.style.background="none" signupIcon.style.color="white" signupIcon.style.marginRight="20px" signupIcon.style.padding="3px" signupIcon.style.fontSize="18px" formElementElement.insertBefore(signupIcon,signupLink)}}}} function addIconToUserSettingFields(){let elements=document.getElementsByClassName("left form-title") for(const targetElement of elements){targetElement.style.display="flex";targetElement.style.alignItems="center";targetElement.style.gap="7px";for(const item of mapTitleToIcon){if(targetElement.innerHTML===item.title){let iconSpan=document.createElement('div') iconSpan.classList.add("material-symbols-outlined") iconSpan.innerHTML=item.icon;targetElement.insertBefore(iconSpan,targetElement.firstChild)}}}} function addIconToDesktopPanelMenu(){let containerResult=document.getElementsByClassName("link-container") if(containerResult.length>0){let container2Result=containerResult[0].getElementsByClassName("desktop");if(container2Result.length>0){container2Result[0].classList.add("custom-desktop-menu-container");for(const targetElement of container2Result[0].children){targetElement.style.display="flex";targetElement.style.padding="10px";targetElement.style.alignItems="center";targetElement.style.gap="7px";for(const item of mapTitleToIcon){if(targetElement.innerHTML===item.title){let iconSpan=document.createElement('div') iconSpan.classList.add("material-symbols-outlined") iconSpan.innerHTML=item.icon;targetElement.insertBefore(iconSpan,targetElement.firstChild)}}}}}} async function getIntroDialogData(){let serverResponse="" try{let result=await fetch(mainBannerAddress) serverResponse=await result.text() showIntroDialog(serverResponse)}catch(e){}} function showIntroDialog(html){let proccessEventInChild=!1;let dialog=document.createElement('div') dialog.classList.add("custom-popup") dialog.id="custom-popup-dialog" dialog.style.display="block" dialog.addEventListener('click',()=>{if(!proccessEventInChild) dialog.style.display="none" proccessEventInChild=!1}) let container=document.createElement('div') container.classList.add("custom-popup-content") container.addEventListener('click',()=>{proccessEventInChild=!0;return!0}) dialog.appendChild(container) let icon=document.createElement('div') icon.classList.add("material-symbols-outlined") icon.innerHTML="info" icon.style.fontSize="40px" container.appendChild(icon) let description=document.createElement('div') description.innerHTML=html description.style.marginBottom="20px" container.appendChild(description) let actionButton=document.createElement('button') actionButton.classList.add('custom-popup-action-button') actionButton.innerHTML="متوجه شدم" actionButton.onclick=()=>{dialog.style.display="none"} container.appendChild(actionButton) document.body.appendChild(dialog)} function addChargeAccountButton(){let accountPageContainer=document.getElementsByClassName("account-page-container")[0] for(const child of accountPageContainer.children){if(child.innerHTML.includes("موجودی :")){child.style.display='flex' child.style.gap='10px' let chargeLinkElement=document.createElement('div') chargeLinkElement.style.color="green" chargeLinkElement.style.fontWeight="bold" let icon=document.createElement('div') icon.classList.add("material-symbols-outlined") icon.innerHTML="add" icon.style.fontSize="10px" icon.style.padding="2px" icon.style.color="white" icon.style.background="green" chargeLinkElement.appendChild(icon) let linkToCharge=document.createElement('a') linkToCharge.href="/V1L3VzZXIvdG9wdXA" linkToCharge.style.textDecoration="none" linkToCharge.appendChild(chargeLinkElement) child.appendChild(linkToCharge)}}}