PageSourceSearch

https://www.dailyfunny.com/wp-content/plugins/outrigger/scripts/ve…?h=192b764f9296fce310a3

js dailyfunny.com collected 2026-09-26 19:02:39 UTC 16,042 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkoutrigger=self.webpackChunkoutrigger||[]).push([[615],{2757:function(e,t,r){let i;r.r(t),r.d(t,{default:function(){return g}});const a={articleLoader:!1,running:!1,queuedArticle:!1,renderedArticles:[],articleInView:null,trackedPages:0,getPostJson:(e,t,r)=>{const a=new XMLHttpRequest,n=window.location.origin+"/wp-json/content/v2/post/wp/"+e;let o;a.open("GET",n),a.send(),a.onreadystatechange=a=>{4===a.target.readyState&&200===a.target.status?a.target.responseText&&(o=JSON.parse(a.target.responseText),i("loaded article",o),t(o)):4===a.target.readyState&&(i("Error: Next post content is empty!",e),r())}},preloadFirstArticle:e=>{a.renderedArticles[0]={id:_WF.cache.getItem(_WF.KEYS.POSTID),title:_WF.cache.getItem(_WF.KEYS.POSTTITLE),slides:[{id:-1,header:_WF.cache.getItem(_WF.KEYS.POSTTITLE),content:[document.querySelector("article .inner-entry-content")]}],meta:{abbreviation:_WF.cache.getItem(_WF.KEYS.POSTABBR),lastModified:_WF.cache.getItem(_WF.KEYS.POSTLASTMODIFIEDDATE),url:document.location.origin+document.location.pathname,author:_WF.cache.getItem(_WF.KEYS.POSTAUTHOR),slug:_WF.cache.getItem(_WF.KEYS.POSTNAME),thumbnail:_WF.cache.getItem(_WF.KEYS.POSTTHUMBNAIL),nextPost:{id:e.id,url:e.url},category:_WF.cache.getItem(_WF.KEYS.POSTCATS)}}},buildPostContent:()=>{let e="",t="";a.queuedArticle.meta.author&&(e=`<a href="${a.queuedArticle.meta.author.url}">${a.queuedArticle.meta.author.name}</a>`),0!==a.queuedArticle.meta.category.length&&(t=`in \n        <a href="${a.queuedArticle.meta.category[0].url}" class="cat">${a.queuedArticle.meta.category[0].name}</a>`);const r=new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"2-digit"}).format(new Date(a.queuedArticle.meta.date));let i="",n="";a.queuedArticle.meta.lastModified&&(i=new Intl.DateTimeFormat("en-US",{month:"numeric",day:"numeric",year:"2-digit"}).format(new Date(a.queuedArticle.meta.lastModified)),n=`<div class="date-modified temp">&nbsp;[updated: ${i}]</div>`);const o=`\n    <header class="entry-header content-border-color">\n        <h1 class="entry-title">${a.queuedArticle.title}</h1>\n        <div class="meta byline has-new-disclosure" style="display: block;">\n            <div class="meta-byline">\n                <span class="author-byline">\n                    ${e} ${t}\n                </span>\n                <span class="date">\n                    <div>${r}<wbr></div>\n                    ${n}\n                </span>\n            </div>\n            <div class="new-affiliate-disclosure">This article may contain affiliate links, <a target="_blank" href="/affiliate">learn more</a>.</div>\n        </div>\n    </header>`,s=`\n    <section class="entry-content copy-font">\n        <div class="inner-entry-content">\n            ${a.queuedArticle.slides[0].content[0]}\n        </div>\n    </section>`,l=`\n    <article id="post-${a.queuedArticle.id}">\n        ${o}\n        ${s}\n    </article>`;return(new DOMParser).parseFromString(l,"text/html").body.firstChild},insertOrUpdatePUCUnit:function(e){["4","3","2","1",""].forEach((t=>{let r=t?`-P${t}`:"",i=document.getElementById(`primary-under-content-wrapper${r}`),n=document.getElementById(`primary-under-content${r}`),o=a.renderedArticles.length;i&&n&&-1!==o&&(i.id+="-"+o,n.id+="-"+o);var s=document.createElement("div");s.className="ad-widget-wrapper primary-ad-wrapper",s.id=`primary-under-content-wrapper${r}`,s.innerHTML=`<div id="primary-under-content${r}" class="primary-ad-widget"></div>`,e.insertAdjacentElement("afterend",s);var l=_WF.cache.getItem(_WF.KEYS.PROVIDERS)[`puc${t}`];l&&("prebidv2"===l?(s.insertAdjacentElement("afterbegin",_WF.utils.createAttributionDiv()),_WF.prebid.refreshSlots(`primary-under-content${r}}`)):_WF.utils.initLoader(l,`puc${t}`))}))},tryRenderInfiniteContent:()=>{const e=document.querySelector("#primary article:last-of-type");i("Last article found",e);const t=a.buildPostContent();a.renderedArticles.push(a.queuedArticle);const r=a.queuedArticle;if(a.queuedArticle=!1,document.getElementById(`post-${r.id}`))return void i("Article already inserted",e);
1e.insertAdjacentElement("afterend",t),a.insertOrUpdatePUCUnit(e);document.querySelector("#next-button a").href=r.meta.nextPost.url,_WF.utils.evaluateScriptTags(t),a.updateScrollArticleLoader(),_WF.emit(_WF.EVENTS.INFITESCROLLRENDERCONTENT)},updateScrollArticleLoader:()=>{a.articleLoader.paragraphs=document.querySelectorAll("article .inner-entry-content p")},getArticleInView:()=>{const e=document.querySelectorAll("article");let t=null;if(e.forEach((e=>{_WF.utils.isElementInViewport(e)&&(t=e)})),!t)return t;let r=t.id.split("-")[1];if(!r)return t;let i=a.renderedArticles.find((e=>e.id==r));return i||null},updateCacheIfExists:(e,t)=>{t?_WF.cache.setItem(e,t):i("update > updatePageCache > updateCacheIfExists > Cannot update cache for item, value is null or undefined: ",e)},updatePageCache:()=>{const e=a.getArticleInView();e!=a.articleInView&&null!=e&&(a.articleInView=e,e&&(i("update > updatePageCache > updating page cache"),e.meta&&(a.updateCacheIfExists(_WF.KEYS.POSTABBR,e.meta.abbreviation),a.updateCacheIfExists(_WF.KEYS.POSTAUTHOR,e.meta.author),a.updateCacheIfExists(_WF.KEYS.POSTCATS,e.meta.category),a.updateCacheIfExists(_WF.KEYS.POSTLASTMODIFIEDDATE,e.meta.lastModified),a.updateCacheIfExists(_WF.KEYS.POSTNAME,e.meta.slug),a.updateCacheIfExists(_WF.KEYS.POSTPUBLISHDATE,e.meta.date),a.updateCacheIfExists(_WF.KEYS.POSTTAX,e.meta.taxonomies),a.updateCacheIfExists(_WF.KEYS.POSTTHUMBNAIL,e.meta.thumbnail),a.updateCacheIfExists(_WF.KEYS.POSTU
1RL,e.meta.url)),document.title=_WF.utils.removeHTMLTagsFromString(e.title),a.updateCacheIfExists(_WF.KEYS.POSTID,e.id),a.updateCacheIfExists(_WF.KEYS.POSTTITLE,e.title),e.slides&&a.updateCacheIfExists(_WF.KEYS.POSTNUMPAGES,e.slides.length)),a.trackedPages<a.renderedArticles.indexOf(e)&&(i("update > updatePageCache > track page"),_WF.dataCollection.init(),a.trackedPages+=1))},prepareNewPost:e=>{a.queuedArticle=e},onPostFail:()=>{i("Error: Failed to load next post, ending infinite scroll."),a.running=!1},isRunning:()=>a.running,updatePageUrl:()=>{const e=a.getArticleInView();if(!e||!e.meta||!e.meta.url)return void i("update > updatePageUrl > meta missing, skipping updating for article",e);let t=e.meta.url;t+=document.location.search+document.location.hash,history.replaceState&&(i("update > updatePageUrl > updating pageUrl to",t),history.replaceState(null,null,t))},targetParagraphInRange:(e,t)=>{let r=t-10;return r<0&&(r=0),e>=r},isReadyForRender:()=>a.queuedArticle,update:(e,t)=>{if(a.isRunning()){if(a.updatePageUrl(),a.updatePageCache(),!a.targetParagraphInRange(e,t))return!1;if(a.isReadyForRender(e,t))i("update > ready to render"),a.tryRenderInfiniteContent();else{i("update > not ready to render, requesting next article");const e=a.renderedArticles[a.renderedArticles.length-1].meta.nextPost.id;a.getPostJson(e,a.prepareNewPost,a.onPostFail)}}},init:e=>{i=_WF.utils.getLogger("footer > mmdiy > iScrollArticleLoader > infiniteContent",_WF.LOGLEVEL.FOOTER),i("init"),a.running=!0,a.articleLoader=e;const t=document.querySelector("article"),r=document.getElementById("footer-units"),n=r.querySelector(".blurb-outer");n.parentElement.removeChild(n),t.insertAdjacentElement("afterend",r);const o=_WF.cache.getItem(_WF.KEYS.NEXTPOSTINFO);a.preloadFirstArticle(o),a.getPostJson(o.id,a.prepareNewPost,a.onPostFail)}};var n={init:a.init,update:a.update,isRunning:a.isRunning};let o;const s={popSlots:[],paragraphsPerSlot:3,refreshSlots:[],lastParagraphWithSlot:0,slotsReadyForReposition:[],removeInjectedSlots:()=>{const e=document.querySelectorAll('.injected-ad-widget:not([id*="video"])');o("Removing injected slots: ",e),e.forEach((e=>{e.parentNode.removeChild(e)}))},positionInitialSlots:e=>{let t=s.popSlots.length;e.forEach(((e,r)=>{if(0!=t&&(r+1)%s.paragraphsPerSlot==0){const i=s.popSlots[s.popSlots.length-t],a=i.parentNode;a.classList.add("popcontainer"),e.parentNode.insertBefore(a,e),i.parentNode.insertBefore(_WF.utils.createAttributionDiv(),i),s.lastParagraphWithSlot=r,t--}}))},prepareRefreshSlots:()=>{s.popSlots.forEach((e=>{s.refreshSlots.push(e.id)}))},renderSlots:()=>{s.refreshSlots.length>0&&_WF.prebid.refreshSlots(s.refreshSlots),s.refreshSlots=[]},updateSlotsStatus:()=>{s.popSlots.forEach((e=>{e.getBoundingClientRect().bottom<=0&&-1==s.slotsReadyForReposition.indexOf(e)&&s.slotsReadyForReposition.push(e)}))},slotUpdateNeeded:e=>e>=s.lastParagraphWithSlot,objectFilter:(e,...t)=>t.reduce(((t,r)=>(t[r]=e[r],t)),{}),copyAdUnitStyles:(e,t)=>{if(e&&t){const t=window.getComputedStyle(e),r=s.objectFilter(t,"height","margin-top","margin-bottom");Object.assign(e.style,r)}else{const r=[];!e&&r.push("oldSlot"),!t&&r.push("dummySlot"),_WF.utils.errorReport(`copyAdUnitStyles - ${r.join(",")} missing`)}},swapSlots:(e,t)=>{if(e&&t){const r=e.nextSibling,i=t.nextSibling;r.parentNode.insertBefore(t,r),i.parentNode.insertBefore(e,i)}else{const r=[];!e&&r.push("oldSlot"),!t&&r.push("dummySlot"),_WF.utils.errorReport(`swapSlots - ${r.join(",")} missing`)}},cleanAdUnit:e=>{_WF.utils.clearDivChildren(e),e.removeAttribute("data-google-query-id"),e.removeAttribute("style")},moveSlotsFromAboveViewport:e=>{if(0==s.slotsReadyForReposition.length)return;const t=s.slotsReadyForReposition.shift();let r=!1;Array.prototype.slice.call(e).slice(s.lastParagraphWithSlot+1).forEach(((e,i)=>{if(r)return;const a=s.lastParagraphWithSlot+1+i;if((a+1)%s.paragraphsPerSlot==0){const i=t,n=document.createElement("div");n.classList.add("dummy","ad-widget-wrapper","primary-ad-wrapper","popcontainer"),e.parentNode.insertBefore(n,e);const o=document.createElement("div");n.appendChild(o),o.parentNode.insertBefore(_WF.utils.createAttributionDiv(),o),s.copyAdUnitStyles(i,o),s.cleanAdUnit(i);let l=i.parentNode;for(;l&&!_WF.utils.hasClass(l,"ad-widget-wrapper");)l=l.parentNode;s.swapSlots(l,n),s.lastParagraphWithSlot=a,s.refreshSlots.push(i.id),r=!0}}))},handleSlots:(e,t)=>{s.updateSlotsStatus(),s.slotUpdateNeeded(t)&&s.moveSlotsFromAboveViewport(e),s.renderSlots()},init:(e,t)=>
1{o=_WF.utils.getLogger("footer > ads > paragraphAdLoader ("+t+")",_WF.LOGLEVEL.FOOTER),o("init"),s.popSlots=Array.prototype.slice.call(document.querySelectorAll('.iscrollpop:not([id^="ISAS"])')),s.removeInjectedSlots(),s.positionInitialSlots(e),s.prepareRefreshSlots(),s.renderSlots()}};var l={init:s.init,handleSlots:s.handleSlots};let d;const c={puiSlots:[],imagesPerSlot:1,refreshSlots:[],lastImageWithSlot:0,slotsReadyForReposition:[],removeInjectedSlots:()=>{const e=document.querySelectorAll(".injected-ad-widget");d("Removing injected slots: ",e),e.forEach((e=>{e.parentNode.removeChild(e)}))},getAdWrapper:e=>{let t=e.parentNode;for(;-1==t.id.indexOf("wrapper");)t=t.parentNode;return t},positionInitialSlots:e=>{d("Positioning initial slots: ",c.puiSlots);let t=c.puiSlots.length;if(e.forEach(((e,r)=>{if(0!=t&&(r+1)%c.imagesPerSlot==0){const i=c.puiSlots[c.puiSlots.length-t];d("Positioning slot: ",i);const a=c.getAdWrapper(i);a.classList.add("puicontainer"),e.parentNode.insertBefore(a,e.nextSibling),i.parentNode.firstElementChild.classList.contains("attribution")||i.parentNode.insertBefore(_WF.utils.createAttributionDiv(),i),c.lastImageWithSlot=r,t--}})),t>0){d("Removing slots without space to exist: ",t);for(let e=0;e<t;e++){const e=c.puiSlots.pop();d("Removing slot: ",e),e.previousElementSibling.parentNode.removeChild(e.previousElementSibling),e.parentNode.removeChild(e)}}},prepareRefreshSlots:()=>{c.puiSlots.forEach((e=>{c.refreshSlots.push(e.id)}))},renderSlots:()=>{c.refreshSlots.length>0&&(d("Refreshing slots:",c.refreshSlots),_WF.prebid.refreshSlots(c.refreshSlots)),c.refreshSlots=[]},updateSlotsStatus:()=>{c.puiSlots.forEach((e=>{e.getBoundingClientRect().bottom<=0&&-1==c.slotsReadyForReposition.indexOf(e)&&c.slotsReadyForReposition.push(e)}))},slotUpdateNeeded:e=>e>=c.lastImageWithSlot,objectFilter:(e,...t)=>t.reduce(((t,r)=>(t[r]=e[r],t)),{}),copyAdUnitStyles:(e,t)=>{if(e&&t){const t=window.getComputedStyle(e),r=c.objectFilter(t,"height","margin-top","margin-bottom");Object.assign(e.style,r)}else{const r=[];!e&&r.push("oldSlot"),!t&&r.push("dummySlot"),_WF.utils.errorReport(`copyAdUnitStyles - ${r.join(",")} missing`)}},swapSlots:(e,t)=>{if(e&&t){const r=e.nextSibling,i=t.nextSibling;r.parentNode.insertBefore(t,r),i.parentNode.insertBefore(e,i)}else{const r=[];!e&&r.push("oldSlot"),!t&&r.push("dummySlot"),_WF.utils.errorReport(`swapSlots - ${r.join(",")} missing`)}},cleanAdUnit:e=>{_WF.utils.clearDivChildren(e),e.removeAttribute("data-google-query-id"),e.removeAttribute("style")},moveSlotsFromAboveViewport:e=>{if(0==c.slotsReadyForReposition.length)return;const t=c.slotsReadyForReposition.shift();let r=!1;Array.prototype.slice.call(e).slice(c.lastImageWithSlot+1).forEach(((e,i)=>{if(r)return;d("Moving slots from above viewport.");const a=c.lastImageWithSlot+1+i;if((a+1)%c.imagesPerSlot==0){const i=t,n=c.getAdWrapper(i),o=document.createElement("div");o.classList.add("dummy","ad-widget-wrapper","primary-ad-wrapper","puicontainer"),e.parentNode.insertBefore(o,e.nextSibling);const s=document.createElement("div");o.appendChild(s),s.parentNode.firstElementChild.classList.contains("attribution")||s.parentNode.insertBefore(_WF.utils.createAttributionDiv(),s),c.copyAdUnitStyles(i,s),c.cleanAdUnit(i),c.swapSlots(n,o),c.lastImageWithSlot=a,c.refreshSlots.push(i.id),r=!0}}))},handleSlots:(e,t)=>{c.updateSlotsStatus(),c.slotUpdateNeeded(t)&&c.moveSlotsFromAboveViewport(e),c.renderSlots()},init:(e,t)=>{d=_WF.utils.getLogger("footer > ads > imageAdLoader ("+t+")",_WF.LOGLEVEL.FOOTER),d("init"),c.puiSlots=Array.prototype.slice.call(document.querySelectorAll('.iscrollpui:not([id^="ISAS"])')),c.positionInitialSlots(e),c.prepareRefreshSlots(),c.renderSlots()}};var p={init:c.init,handleSlots:c.handleSlots};let u;const m={maxParagraphInView:0,maxImageInView:0,paragraphs:[],images:[],isElementInViewport:e=>{const t=e.getBoundingClientRect();return t.bottom>=0&&t.right>=0&&t.top<=(window.innerHeight||document.documentElement.clientHeight)&&t.left<=(window.innerWidth||document.documentElement.clientWidth)},getLastParagraphInView:()=>{let e=0;for(let t=0;t<m.paragraphs.length;t++){const r=m.paragraphs[t];m.isElementInViewport(r)&&(e=t)}return m.maxParagraphInView+1!=(e+1||1)&&u("Paragraph is in view",e),e},getLastImageInView:()=>{let e=0;for(let t=0;t<m.images.length;t++){const r=m.images[t];m.isElementInViewport(r)&&(e=t)}return m.maxImageInView+1!=(e+1||1)&&u("Image is in view",e),e},initScrollListener:e=>{_WF.utils.addScrollListener((t=>{const r=m.getLastParagraphInView(),i=m.getLastImageInView();"paragraph"==e?l.handleSlots(m.paragraphs,m.maxParagraphInView):"image"==e&&p.handleSlots(m.images,m.maxImageInView),r!=m.maxParagraphInView&&
1(m.maxParagraphInView=r,n.update(m.maxParagraphInView,m.paragraphs.length)),i!=m.maxImageInView&&(m.maxImageInView=i)}))},filterImage:e=>{let t=e.nextSibling;return!(!t||"#text"!=t.nodeName||""===t.nodeValue.trim())||(!!(t&&t.classList&&t.classList.contains("gallery"))||(t&&"#text"==t.nodeName&&""==t.nodeValue.trim()&&(t=t.nextSibling),t&&t.id&&-1!==t.id.indexOf("primary-under-image")&&(t=t.nextSibling),t&&t.classList&&t.classList.contains("index-primary-wrap")&&(t=t.nextSibling),(!t||"FIGURE"!=t.nodeName)&&(!(t&&t.classList&&t.classList.contains("ad-widget-wrapper"))&&!(t&&t.classList&&t.classList.contains("viewmore")))))},init:()=>{const e=_WF.cache.getItem(_WF.KEYS.BLOGID);let t="unknown",r="unknown";"52"==e?(t="mmdiy",r="paragraph"):"48"==e&&(t="decoist",r="image"),u=_WF.utils.getLogger(`footer > ${t} > iScrollArticleLoader`,_WF.LOGLEVEL.FOOTER),u("init"),m.paragraphs=document.querySelectorAll("article .inner-entry-content p"),"paragraph"==r?l.init(m.paragraphs,t):"image"==r&&(m.images=document.querySelectorAll('.main-content figure:not([class^="gallery-item"])'),m.images=Array.prototype.slice.call(m.images).filter(m.filterImage),p.init(m.images,t)),m.initScrollListener(r),_WF.utils.isTesting("mmdiy_spl_ab","infinite",!0)&&n.init(m)}};var g=m}}]);

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.