Advertisement
coentoro

mavefund-adsense-v4

Oct 23rd, 2023
703
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.88 KB | Source Code | 0 0
  1. (function(a,b){const c=[{class:"top",adslot:"1672900703"},{class:"middle",adslot:"8511440099"},{class:"bottom",adslot:"9527355901"}],d=window.screen.width,e=window.location.pathname,f=function(b,c){let d=a.createElement(b);return Object.assign(d,c),""!==c.datasetAdClient,d};var g=f("script",{async:!0,src:"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6404021102530936",crossOrigin:"anonymous"}),h=f("style",{}),i=null,j=null,k=null,l=null;h.innerHTML=`@media screen and (max-width:1220px){.mav-leaderboard-container{display:flex;justify-content:center;width:728px;margin:40px auto}.mav-leaderboard-container>ins{width:728px;height:90px}}@media screen and (max-width:750px){body{display:table}.mav-leaderboard-container{display:flex;justify-content:center;width:80%;margin:40px auto}.mav-leaderboard-container>ins{width:428px;height:90px}}@media screen and (max-width:376px){.mav-leaderboard-container{display:flex;justify-content:center;width:80%;margin:40px auto}.mav-leaderboard-container>ins{width:370px;height:90px}body{display:table}}`,a.head.insertAdjacentElement("beforeend",g),a.head.insertAdjacentElement("beforeend",h);for(const d of c)switch(k=f("ins",{className:"adsbygoogle leaderboard",style:"display:block"}),l=f("script",{}),l.innerText=`(adsbygoogle = window.adsbygoogle || []).push({});`,k.dataset.adSlot=d.adslot,k.dataset.adClient="ca-pub-6404021102530936",b?k.dataset.adtest="on":"",k.appendChild(l),i=f("div",{className:`mav-leaderboard-container  ${d.class}`}),j=f("div",{className:`leaderboard`}),i.appendChild(k),d.class){case"top":"/"==e&&a.querySelector(".logo-container").insertAdjacentElement("afterend",i);break;case"middle":if("/"==e){let b=720<window.screen.width?"#indexes":"#news-indicators";a.querySelector(b).insertAdjacentElement("afterend",i)}break;case"bottom":a.querySelector("#content, body").insertAdjacentElement("beforeend",i);}})(document,!0);
Tags: mavefund-v4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement