‘}const div=createElementWithHtml(‘div’,linkElement);div.classList.add(‘promo-link’);element.parentNode.insertBefore(div,element.nextSibling)}function insertElementHtml(element,id){if(!element){console.error(‘insertElementHtml: element is not a DOM node’);return}if(document.getElementById(id)){const div=createElementWithHtml(‘div’,document.getElementById(id).innerHTML);element.parentNode.insertBefore(div,element.nextSibling)}}function createElementWithHtml(tag,html){const element=document.createElement(tag);element.innerHTML=html;return element}function checkSlideStart(){if(!slide_started)check_slide()}function removeEmbeddedTitles(){const embTIs=document.querySelectorAll(‘#v_article .embTI’);embTIs.forEach(element=>element.remove());work_editor()}function processMobilePromoLink(){if(!mobile_device||(xuaInfo.device!==’mobile’&&xuaInfo.device!==”))return;const promoLink=document.querySelector(‘.promo-link’);const newsletterSignup=document.getElementById(‘newsletterSignupHorizontal’);if(!promoLink){return}if(!newsletterSignup){return}if(!promoLink.parentNode){return}promoLink.parentNode.insertBefore(newsletterSignup,promoLink.nextSibling)}function addReadMoreComponent(element){if(document.querySelectorAll(‘.read-more-embedded’).length===0&&document.getElementById(‘readMoreTopics’)){fetch(‘https://d.newsweek.com/json/read-more-articles?article_id=1993832&article_link=sports/mlb/max-fried-predicted-betray-braves-massive-168-million-deal-al-east-1993832&article_category=MLB&source=by_parsely&article_keyword_related=144635&article_written=1733087217&size=4&days_old=4d&return=html&topic_label=MLB&topic_link=sports/mlb’).then(response=>response.json()).then(data=>{if(data&&data.html&&data.html.length>0){jQuery(‘#readMoreTopics’).html(data.html);insertElementHtml(element,’readMoreTopics’);jQuery(‘#readMoreTopics’).remove();let readmoreContainer=document.querySelector(‘.read-more-topics’);let categoryGtm=document.querySelector(‘body’).getAttribute(‘data-gtm-category’);let actionGtm=readmoreContainer.getAttribute(‘data-gtm-action’);let readmoreLinks=readmoreContainer.querySelectorAll(‘a’);setGtmEventLinks(readmoreLinks,categoryGtm,actionGtm)}else{if(document.getElementById(‘readMoreTopics’)){document.getElementById(‘readMoreTopics’).remove()}}}).catch(error=>{console.error(‘Error fetching read more articles:’,error)})}}function addLatestArticlesRightRail(elementId){if(document.getElementById(elementId)){fetch(‘https://d.newsweek.com/json/get-latest-articles?gtm_source=Latest_Updates_Right_Trail&return=html’).then(response=>response.json()).then(data=>{if(data!==undefined&&data.json.length>0){const element=document.getElementById(elementId);element.innerHTML=data.html;element.style.display=”;let latestArticlesContainer=document.querySelector(‘.articles-single-column-container’);let categoryGtm=document.querySelector(‘body’).getAttribute(‘data-gtm-category’);let actionGtm=latestArticlesContainer.getAttribute(‘data-gtm-action’);let latestArticlesLinks=latestArticlesContainer.querySelectorAll(‘a’);setGtmEventLinks(latestArticlesLinks,categoryGtm,actionGtm)}}).catch(error=>{console.error(‘Error fetching latest articles:’,error)})}}function getTrendingCommentsCount(data){const articles=data.json;Object.values(articles).forEach(({a_id})=>{getMessageCount(a_id,`article-${a_id}`,”comments”)})}function addTrendingArticlesRightRail(elementId){if(document.getElementById(elementId)){fetch(‘https://d.newsweek.com/json/get-trending-articles?return=html&limit=5’).then(response=>response.json()).then(data=>{if(data!==undefined&&data.json.length>0){const element=document.getElementById(elementId);element.innerHTML=data.html;element.style.display=”;let trendingArticlesContainer=document.querySelector(‘.numbered-list-container’);let categoryGtm=document.querySelector(‘body’).getAttribute(‘data-gtm-category’);let actionGtm=trendingArticlesContainer.getAttribute(‘data-gtm-action’);let trendingArticlesLinks=trendingArticlesContainer.querySelectorAll(‘a’);setGtmEventLinks(trendingArticlesLinks,categoryGtm,actionGtm);getTrendingCommentsCount(data)}}).catch(error=>{console.error(‘Error fetching trending articles:’,error)})}}
Related Posts

UNBELIEVABLE!! Orioles must face hard truth about Jackson Holliday
The Baltimore Orioles former No. 1 overall pick has improved in 2025, but not enough. Baltimore Orioles v Detroit Tigers – Game Two | Nic Antaya/GettyImage …

BREAKING NEWS!! Braves must pull the plug on Bryce Elder before it costs them big
When the Atlanta Braves beat the Rockies on Monday, the result should have been expected. The Braves have been red hot after one of the worst starts…

Rаngerѕ trаde rіght-hаnded relіever Mаtt Feѕtа to the Guаrdіаnѕ for cаѕh
CLEVELAND (AP) – The Cleveland Guardians have acquired right-handed pitcher Matt Festa from the Texas Rangers for cash, the Guardians announced Wednesday.The…

What we learned as Giants swept by Padres in San Diego after Landen Roupp hit hard early
Two late San Francisco Giants homers weren’t enough overcome the San Diego Padres scoring four runs on Landen Roupp in 4 1/3 innings Wednesday.

Cаrdіnаlѕ’ Mіleѕ Mіkolаѕ Credіtѕ Wаrm Weаther For Scoreleѕѕ Outіng Vѕ. Redѕ
Miles Mikolas was dominant.

Why Cubѕ аre holdіng bаck red-hot toр рroѕрect deѕріte 16-gаme hіttіng ѕtreаk
Craig Counsell isn’t rushing to bring up the Cubs’ top prospect just yet, but his time is coming.