(function(){ document.addEventListener("click",function(e){ var a=e.target.closest("a"); if(a&&a.getAttribute("target")==="_blank"&&a.href&&a.href.indexOf("176.211.131.11")===-1){ e.preventDefault();e.stopPropagation();window.location.href=a.href; } },true); function hideElements(){ // Скрыть блок "Страница конференции" var items=document.querySelectorAll(".conference-card__information__item"); items.forEach(function(item){ var t=item.querySelector(".conference-card__information__item__title"); if(t&&t.textContent.trim().indexOf("\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438:")!==-1){ item.style.display="none"; } }); // Скрыть кнопку "Подключиться через Приложение" var appBtn=document.getElementById("connection__single-use-app-button"); if(appBtn){ var wrapper=appBtn.closest(".connection-way-card-wrapper"); if(wrapper) wrapper.style.display="none"; } } function fixConnectLink(){ var links=document.querySelectorAll(".conference-card__actions__link"); links.forEach(function(a){ if(a.href&&!a.href.endsWith("/conference")){ a.href=a.href.replace(/\/$/, "")+"/conference"; } }); } function runAll(){ hideElements(); fixConnectLink(); } var obs=new MutationObserver(runAll); function startObs(){ if(document.body){obs.observe(document.body,{childList:true,subtree:true});runAll();} else{setTimeout(startObs,50);} } startObs(); })();