PageSourceSearch

https://gfx.radiopogoda.pl/extension/adverts/design/standard/javas…/Yieldbird/Yieldbird.js?t=1770117922

js radiopogoda.pl collected 2026-10-02 16:45:29 UTC 9,889 bytes, 1 lines download raw bytes

1(()=>{"use strict";class e{constructor(e={}){this.options={root:e.root||document.querySelector(null),rootMargin:e.rootMargin||"0px",threshold:e.threshold||.5}}subscribe(e,t){if("function"!=typeof t)throw new Error("Musisz przekazać funkcję jako drugi parametr");const o=document.querySelectorAll(e);if(0===o.length)return console.warn(`Nie znaleziono elementów dla selektora: ${e}`),!1;const r=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(t(e.target),r.unobserve(e.target))}))}),this.options);return o.forEach((e=>{r.observe(e)})),r}async load(e,t){const o=document.querySelectorAll(e);if(o.length>0)try{const{default:e}=await t(o);return e?(console.log(`%c Wczytana classa ${e.name}`,"background: #222; color: #bada55"),e):(console.log("%c Brakuje export default w classie ","background: red; color: white"),null)}catch(t){return console.log(`%c Nie udało się pobrac classy ${e}`,"background: red; color: white",t),null}return console.log(`%c Strona nie zawiera selectora ${e}, nie wczytuje odpowiedniej classy`,"background: red; color: white"),null}}const t=null!==new URL(window.location.href).searchParams.get("yb-debug"),o=(new URL(window.location.href).searchParams.get("reward-empty"),1==window.eurozet_t),r={default:{"div-gpt-ad-leaderboard-top_h300":{selector:"> p",item:0,type:"after"},"div-gpt-ad-leaderboard_advCounter_h300":{selector:"> p",item_every:3,type:"after",counterSystem:!0}}},n=Object.assign({},r);"magazine"===document.querySelector("body").dataset.type&&(r.default["div-gpt-ad-leaderboard_advCounter_h300"].item_every=3);class d{constructor(){const t=this.getAdvData();this.observer=new e,this.sponsor=t.sponsor?t.sponsor.toString():"0",this.development_mode=document.location.host.includes(".lab.eurozet.pl"),this.mobile=window.matchMedia?window.matchMedia("(max-width: 767px)").matches:window.mobile,this.setPageID(),this.init()}getAdvData(){if(document.querySelector('meta[name="advert-data"]')){let e=document.querySelector('meta[name="advert-data"]').content;return","===e.substr(e.length-1)&&(e=e.slice(0,-1)),function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}}(`{${e}}`)?JSON.parse(`{${e}}`):{}}return!1}debug(e){const t=`%c ${Math.round(performance.now())} -- Yieldbird debug: `,o="background: grey; color: white;";for(var r=arguments.length,n=new Array(r>1?r-1:0),d=1;d<r;d++)n[d-1]=arguments[d];n.length?console.log(t,o,e,n):console.log(t,o,e)}
1async init(){this.setSlotsInArticle(),this.markSticky()}setPageID(){let e=window.pageID;return void 0===window.pageID&&(e=document.querySelector("body").dataset.pageId||window.location.hostname.split(".")[1]),window.pageID=e,e}setSlotsInArticle(){t&&this.debug("sprawdzenie czy trzeba ładować reklamy do artykułu");const e=document.querySelector(".full__article__content .full__article__body")||document.querySelector(".article__full__body")||document.querySelector(".full__article__body__recipe__text")||document.querySelector(".full-content__main__body");if(e&&"false"===e?.dataset?.advertsJs)return!1;t&&e&&(this.debug("article class:",e),e&&this.debug("połaczenie klas artykułu w jeden string:",[...e.classList].join("."))),e&&!e.dataset.advertNone&&this.putSlotsInText(`.${[...e.classList].join(".")}`)}putSlotsInText(e){t&&(this.debug("ładowanie reklam do artykułu"),this.debug("klasa artykułu: "+e)),window.YieldbirdEmbedInit||(window.YieldbirdEmbedInit=new window.YieldbirdEmbed);const d=this.mobile?n:r,a=d[window.pageID]?d[window.pageID]:d.default,i=this.mobile?"mobile":"desktop";t&&(this.debug("SLOTS",a),this.debug("DEVICE",i)),Object.keys(a).length&&Object.keys(a).map(((r,n)=>{const d=document.querySelectorAll(`${e} ${a[r].selector}`);if(t&&this.debug("SLOT",a[r]),a[r].item_every){const e=[],t=Math.floor(d.length/a[r].item_every);for(let o=1;o<=t;o++)e.push(o*a[r].item_every-1);for(let t=0;t<e.length;t++){const n=e[t],l=d[n];if(console.log("asdad",this.sponsor,n),1===t&&o&&"0"===this.sponsor)this.insertTaboola({position:n,key:r,DEVICE:i,SLOTS:a,SELECTOR:l,SELECTORS:d});else if(t>=1&&(this.insertDefaultAdvert({position:n,key:r,DEVICE:i,SLOTS:a,SELECTOR:l,SELECTORS:d}),"0"!==this.sponsor))break}}else if(a[r].item>=0&&"0"===this.sponsor){const e=a[r].item,t=d[e];this.insertDefaultAdvert({position:e,key:r,DEVICE:i,SLOTS:a,SELECTOR:t,SELECTORS:d})}}))}insertDefaultAdvert(e){const{key:t,DEVICE:o,SLOTS:r,SELECTOR:n,SELECTORS:d,position:a}=e;let i=`<div class="advert-container ${t} device--${o}"><div id="${t}" class="advert dfp ${t}" data-slot="${t}" data-device="${o}"></div></div>`;r[t].counterSystem&&(i=`<div class="advert-container ${t} device--${o}"><div id="${t}" class="advert dfp ${t}" data-slot="${t}" data-device="${o}" data-counter="true"></div></div>`),this.inserAdvertCode({code:i,...e})&&window.YieldbirdEmbedInit.addSlot(document.querySelector(`.advert:not(.parse)[data-slot="${t}"]`))}insertTaboola(e){const t=this.mobile?"taboola-mid-article-carousel":"taboola-mid-article-widget",o=this.mobile?"Mid Article Carousel":"Mid Article Widget",r=this.mobile?"thumbnails-a-carousel":"thumbnails-3x1",n=`<div id="${t}" class="taboola-slot"></div>`;this.inserAdvertCode({code:n,...e})&&(window._taboola=window._taboola||[],_taboola.push({mode:r,container:t,placement:o,target_type:"mix"}))}insertAdvertOnnetworkCode(e){const{key:t,code:o,SLOTS:r,SELECTOR:n,SELECTORS:d,position:a}=e;let i=document.querySelector("#onnetwork--html");return!!(void 0!==n&&a<d.length&&i)&&(i.innerHTML=o,!0)}inserAdvertCode(e){const{key:t,code:o,SLOTS:r,SELECTOR:n,SELECTORS:d,position:a}=e;return void 0!==n&&a<d.length&&("after"!==r[t].type||this.nextAdvert(n)?this.previousAdvert(n)||n.insertAdjacentHTML("beforebegin",o):n.insertAdjacentHTML("afterend",o),!0)}nextAdvert(e){const t=e.nextSibling;return!(!t||"DIV"!=t.nodeName||!t.classList.contains("advert-container"))}previousAdvert(e){const t=e.nextSibling;return!(!t||"DIV"!=t.nodeName||!t.classList.contains("advert-container"))}markSticky(){t&&this.debug("Uruchomienie funkcji do ustawienia reklamy sticky");const e=[...document.querySelectorAll(".column__main--right"),...document.querySelectorAll(".article__full__content .column__right"),...document.querySelectorAll(".full__article__right"),...document.querySelectorAll(".full__content__right"),...document.querySelectorAll(".column-right"),...document.querySelectorAll(".main-column-right"),...document.querySelectorAll(".advert-container-sticky")];e.length&&[...e].map((e=>{const o=e.children,r=o[o.length-1];r&&r.classList.contains("advert-container")&&(r.classList.add("advert-container--sticky"),r.style.top=this.stickyTopHeight()+"px",t&&this.debug("ustawienie sticky dla reklamy",r))}))}stickyTopHeight(){const e=document.querySelector(".radiozet-header")||document.querySelector("#header__main")||document.querySelector("#header-main")||document.querySelector("#main-header");if(e)return e.offsetHeight+20}adBlockDetect(){const e=document.createElement("div");e.id="epQYXbPHFeyjbJyzxj5z3SvDyM",e.style.display="none",document.body.appendChild(e)}static rewardAd(e){t&&console.error("RewardAd run");try{const r=!1,n=document.createElement("Modal");n.classList.add("rewardAd__button"),n.innerText="Zobacz";const d=document.createElement("div");if(r){const e=document.createElement("style");e.type="text/css";const t=".rewardAd__wrapper{position:fixed;width:100%;height:100%;background-color:rgba(0,0,0,0.7);display:flex;align-items:center;justify-content:center;z-index:9999;top:0;left:0;font-size:14px}.rewardAd__content{width:300px;background-color:#e4e4e4;text-align:center;padding:20px 10px}.rewardAd__button{background-color:var(--color__primary, #000);border-radius:3px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:none;color:#fff;margin-top:10px;line-height:1em;padding:0 10px;cursor:pointer}";if(window.attachEvent&&!window.opera)e.styleSheet.cssText=t;else{var o=document.createTextNode(t);e.appendChild(o)}document.getElementsByTagName("head")[0].appendChild(e),d.id="rewardAd__wrapper",d.classList.add("rewardAd__wrapper");const r=document.createElement("div");r.classList.add("rewardAd__content");const a=document.createElement("p");a.innerText="Obejrzyj reklamę, żeby poznać wynik quizu!",a.classList.add("rewardAd__text"),r.appendChild(a),r.appendChild(n),d.appendChild(r),document.body.appendChild(d)}let a,i;window.googletag=window.googletag||{cmd:[]};const l=window.location.host.split("."),s=`${l[l.length-2]}.${l[l.length-1]}`;t&&(console.log(" window.googletag ",window.googletag),console.log(" `/75224259/${domain}/rewarded_quizy` ",`/75224259/${s}/rewarded_quizy`)),googletag.cmd.push((()=>{a=googletag.defineOutOfPageSlot(`/75224259/${s}/rewarded_quizy`,googletag.enums.OutOfPageFormat.REWARDED),t&&(console.log("rewardedSlot",a),console.log("callback",e)),a&&(a.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",(e=>{t&&console.log("rewardedSlotReady"),r?n.onclick=()=>{e.makeRewardedVisible(),d.remove()}:e.makeRewardedVisible()})),googletag.pubads().addEventListener("rewardedSlotClosed",(()=>{t&&console.log("rewardedSlotClosed"),i&&(e&&e(),i=null),a&&googletag.destroySlots([a])})),googletag.pubads().addEventListener("rewardedSlotGranted",(e=>{t&&console.log("rewardedSlotGranted"),i=e.payload})),googletag.pubads().addEventListener("slotRenderEnded",(o=>{t&&(console.log("event reward add",o),console.log("slotRenderEnded")),o.slot===a&&o.isEmpty&&e()})),googletag.pubads().addEventListener("slotRequested",(e=>{t&&console.log("slotRequested",e)})),googletag.pubads().addEventListener("slotResponseReceived",(e=>{t&&console.log("slotResponseReceived",e)})),googletag.enableServices(),googletag.display(a))}))}catch(t){console.error("Error rewardAd:",t),e&&e()}}}const a=setInterval((function(){window.YieldbirdEmbedInit&&(new d,window.adReward=d.rewardAd,s=!0);l===i&&(s=!0);s&&clearInterval(a);l++}),1e3),i=20;let l=1,s=!1})();

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.