PageSourceSearch

https://www.financialexpress.com/wp-content/themes/ie-network-them…/js/read-next-widget-min.js?ver=11122025.08

js financialexpress.com collected 2026-09-24 06:53:47 UTC 3,634 bytes, 1 lines download raw bytes

1function createStoriesForYouWidget(stories){const container=document.querySelector(".stories_fe_widget");if(!container)return;const heading=document.createElement("div");heading.className="stories_fe_heading";heading.textContent="Read Next";const storiesList=document.createElement("div");storiesList.className="stories_fe_list";stories.forEach((story,index)=>{const anchor=document.createElement("a");let storyUrl=story.articleUrl;const refParam=`ref=ReadNext_article_${index+1}`;if(storyUrl&&!storyUrl.endsWith("/")){storyUrl+="/"}const newHref=`${storyUrl}?${refParam}`;anchor.href=newHref;anchor.classList.add("read-next-story-link");anchor.setAttribute("data-event-type",story.algorithm);anchor.setAttribute("data-href",newHref);anchor.setAttribute("id",`event-${story.articleId}`);const img=document.createElement("img");img.src=story.articleFeaturedImage;if(img.src.startsWith("https://www.financialexpress.com/wp-content/uploads")){img.src=img.src.replace("https://www.financialexpress.com/wp-content/uploads","https://images.financialexpressdigital.com")}img.alt=story.articleFeaturedImageAlt;img.height=75;img.width=75;img.title=story.articleFeaturedImageAlt;img.class="lazyloading";img.loading="lazy";const figure=document.createElement("figure");figure.appendChild(img);const p=document.createElement("div");p.className="stories_fe_title";p.textContent=story.articleTitle;anchor.appendChild(figure);anchor.appendChild(p);storiesList.appendChild(anchor)});container.appendChild(heading);container.appendChild(storiesList)}function getCookie(cname){let name=cname+"=";let decodedCookie=decodeURIComponent(document.cookie);let ca=decodedCookie.split(";");for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)==" "){c=c.substring(1)}if(c.indexOf(name)==0){return c.substring(name.length,c.length)}}return""}async function renderReadNextWidget(){let userId=this.getCookie("pluuid")||this.getCookie("fpuuid");let hostUrl=window.location.hostname;let articleId=readNextData.articleId;let apiUrl=`https://devua.financialexpress.com/api/druid/article/summary?channelId=1&algo=2&articleId=${articleId}&limit=3&userId=${userId}`;if("www.financialexpress.com"===hostUrl){apiUrl=`https://ua.financialexpress.com/api/druid/article/summary?channelId=1&algo=2&articleId=${articleId}&limit=3&userId=${userId}`}try{const response=await fetch(apiUrl,{method:"GET",headers:{"API-KEY":readNextData.API_KEY}});if(!response.ok){throw new Error(`HTTP error! Status: ${response.status}`)}const result=await response.json();const stories=result.slice(1,4);createStoriesForYouWidget(stories)}catch(error){console.error("Error fetching summary:",error);return null}}function addRefTrackingOnReadNextWidget(){const widgetSection=document.querySelector(".stories_fe_widget");if(widgetSection){const anchorLinks=widgetSection.querySelectorAll("div a");anchorLinks.forEach((anchor,index)=>{const articleNumber=index+1;const href=anchor.getAttribute("href");const hasQuery=href.includes("?");const separator=hasQuery?"&":"?";const newHref=`${href}${separator}ref=ReadNext_article_${articleNumber}`;anchor.setAttribute("href",newHref)})}}document.addEventListener("DOMContentLoaded",function(){const widgetContainer=document.querySelector(".stories_fe_widget");if(!widgetContainer)return;if(!("IntersectionObserver"in window)){renderReadNextWidget();return}let hasLoaded=false;const observer=new IntersectionObserver(function(entries,obs){entries.forEach(function(entry){if(entry.isIntersecting&&!hasLoaded){hasLoaded=true;obs.disconnect();renderReadNextWidget()}})},{root:null,rootMargin:"200% 0px",threshold:0});observer.observe(widgetContainer)});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.