static.videoo.tv
Open in
urlscan Pro
2606:4700:10::6816:4b55
Public Scan
URL:
https://static.videoo.tv/wrapper_38477f165a31929d94fc00ecec38546e59c82e3dbc4565309576bd347d85db1d.js
Submission: On November 15 via manual from US — Scanned from DE
Submission: On November 15 via manual from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
(function () { let integrationId = '38477f165a31929d94fc00ecec38546e59c82e3dbc4565309576bd347d85db1d'; let container = document.querySelectorAll('div[id="__next"] div[class*="group_content__"], div[id="__next"] div[class*="slug_content__"], div[id="__next"] div[class*="' + getSlug() + '_content__"], div[class*="page_main__"] section[class*="page_container__"] div[class*="page_articleColumn__"] div[class*="page_content__"]'); let paragraph = null if (typeof container !== 'undefined' && container !== null && container.length > 0) { let paragraphs = container[0].getElementsByTagName("p"); const url = window.location.href; const videoFound = url.match(/https?:\/\/(www\.)?earth\.com\/video\//g); if (paragraphs != null && paragraphs.length > 0 && paragraphs[1] && videoFound == null) { let pElem = paragraphs[3] ? paragraphs[3] : paragraphs[1]; let mmContainer = document.createElement("div"); mmContainer.id = 'video-div-slot'; pElem.appendChild(mmContainer); let tag = document.createElement("script"); tag.async = false; tag.defer = true; tag.src= "https://players.voltaxservices.io/players/01garkjp4aa8/code"; document.head.appendChild(tag); } let j =1; for( var i=0; i<paragraphs.length; i++){ if(i>0 && i%9 == 0){ let div = document.createElement("div"); div.id = "intext-" + j++; div.style = "padding: 0 16px;text-align:center; min-height: 250px; display: block; position: relative;" paragraphs[i].appendChild(div); window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { googletag.defineSlot('/21682672808,48037644/earth.com/earth.com_mpu1', [300, 250], div.id).addService(googletag.pubads()); googletag.enableServices(); googletag.display(div.id); }); } } } else { console.log('container does not exists'); } //Gallery infinite if(window.location.href.indexOf("/gallery/infinite/") !== -1){ window.addEventListener("scroll", function (e){ let scripts = document.querySelectorAll('[type="text/dgscript"]'); for (var i=0; i < scripts.length; i++){ var s = scripts[i]; var parentDiv = s.parentNode; var random = new Date(new Date() - Math.random()*(1e+12)).getTime(); parentDiv.id = parentDiv.id.replace("{RANDOM_ID_SLOT}", random); let ns = document.createElement("script"); ns.innerHTML = s.innerHTML.replaceAll("{RANDOM_ID_SLOT}", random); ns.setAttribute('type', 'text/javascript'); s.parentNode.insertBefore(ns, s.nextSibling); ns.parentNode.removeChild(s); } }); let tagContainer = document.getElementById("dg-videoo-tv-container"); if(typeof tagContainer !== "undefined" && tagContainer != null && tagContainer){ /* let tag = document.createElement("script"); tag.async = false; tag.defer = true; tag.id = "videoo-library"; tag.setAttribute('data-id', integrationId); tag.src= "https://static.videoo.tv/" + integrationId + ".js"; tagContainer.appendChild(tag);*/ let mmContainer = document.createElement("div"); mmContainer.id = 'video-div-slot'; tagContainer.appendChild(mmContainer); let tag = document.createElement("script"); tag.async = false; tag.defer = true; tag.src= "https://players.voltaxservices.io/players/01garkjp4aa8/code"; document.head.appendChild(tag); let rewarded = document.createElement("script"); rewarded.async = false; rewarded.defer = true; rewarded.src= "https://static.videoo.tv/earth-rewarded.js"; document.body.appendChild(); } } //Home /*if (window.location.href === 'https://www.earth.com/') { addEventListener("DOMContentLoaded", (event) => { let tagContainer = document.querySelectorAll('div[id="__next"] section[class*="index_container__"] div[class*="AdZone_adZone__"]'); if(typeof tagContainer !== "undefined" && tagContainer != null && tagContainer instanceof NodeList && tagContainer.length >= 3){ let container = tagContainer[2]; let tag = document.createElement("script"); tag.async = false; tag.defer = true; tag.id = "videoo-library"; tag.setAttribute('data-id', integrationId); tag.src= "https://static.videoo.tv/" + integrationId + ".js"; container = container.parentNode; container.insertBefore(tag, container.firstChild); } }); }*/ //Taboola if(window.location.href.indexOf("/news/") !== -1 || window.location.href.indexOf("/news_beta/") !== -1) { let taboolaContainer = document.querySelector('div[id="__next"] div[class*="slug_main__"] div[class*="slug_content__"], div[class*="page_main__"] section[class*="page_container__"] div[class*="page_articleColumn__"] div[class*="page_content__"]'); if (typeof taboolaContainer !== 'undefined' && taboolaContainer !== null) { if ('IntersectionObserver' in window || 'IntersectionObserverEntry' in window || 'intersectionRatio' in window.IntersectionObserverEntry.prototype) { let intersectionContainer = taboolaContainer.lastChild; let observer = new IntersectionObserver((entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { const element = entry.target; observer.unobserve(element); //TODO TABOOLA CODE loadTaboola(taboolaContainer); } }) }, { root: null, rootMargin: "150px", threshold: 0 }); observer.observe(intersectionContainer); } else { //TODO TABOOLA CODE loadTaboola(taboolaContainer); } } } function loadTaboola(taboolaContainer) { window._taboola = window._taboola || []; _taboola.push({article:'auto'}); !function (e, f, u, i) { if (!document.getElementById(i)){ e.async = 1; e.src = u; e.id = i; f.parentNode.insertBefore(e, f); } }(document.createElement('script'), document.getElementsByTagName('script')[0], '//cdn.taboola.com/libtrc/digitalgreenpublisher-earth/loader.js', 'tb_loader_script'); if(window.performance && typeof window.performance.mark == 'function') {window.performance.mark('tbl_ic');} //Put taboola let taboolaDiv = document.createElement("div"); taboolaDiv.id = "taboola-below-article-thumbnails"; taboolaDiv.style.marginTop = '30px'; taboolaContainer.appendChild(taboolaDiv); window._taboola = window._taboola || []; _taboola.push({ mode: 'alternating-thumbnails-a', container: 'taboola-below-article-thumbnails', placement: 'Below Article Thumbnails', target_type: 'mix' }); _taboola.push({flush: true}); } function getSlug(){ const segments = new URL(window.location.href).pathname.split('/'); return segments.pop() || segments.pop(); } })();