Biden announces that we will have enough vaccines for every adult in the U.S. by end of May

Keep Reading
Show less

ChangeListener('.posts-custom',function(E){if(E.querySelector('.body-description')){}else if(E.querySelector('.body')){E.querySelector('.body').classList.add('body-description')}})

});

window.REBELMOUSE_TASKS_QUEUE.push(function(){

function ChangeListener(selector, callback) { const initializedNodes = new Set([]); document.querySelectorAll(selector).forEach(node => { callback(node); initializedNodes.add(node); }); const mutationObserver = new MutationObserver(() => { const nodes = document.querySelectorAll(selector); nodes.forEach(node => { if (!initializedNodes.has(node)) { callback(node); initializedNodes.add(node); } }); }); mutationObserver.observe(document.body, { childList: true, subtree: true }); }

ChangeListener('.widget__section',function(E){if(E.innerHTML=='Sponsored Video' || E.innerHTML=='Sponsored'){E.remove()}});

});

window.REBELMOUSE_TASKS_QUEUE.push(function(){

function fbvideoID(frame) { var myRegexp = /2F(d+)%/g; var match = myRegexp.exec(frame); return match[1]; } var fbIframe = document.querySelector('iframe[src^="https://www.facebook.com/plugins/video.php?"]'); if (fbIframe) {fvVidID = fbvideoID(fbIframe.getAttribute('src')); if (fvVidID) { fbIframe.insertAdjacentHTML("beforebegin", '

'); // fbIframe.parentNode.removeChild(fbIframe); } } var videoId = "promoted-video"; var oldFacebookVideo = document.getElementById(videoId); if (!oldFacebookVideo) { return }; var facebookVideoPost = oldFacebookVideo.closest(".widget"); if (!facebookVideoPost) { return };

var facebookVideo = facebookVideoPost.querySelector("#" + videoId); facebookVideo.classList.add("fb-video"); var firstPost = document.querySelector(".widget.post-partial");

function onScriptLoad() { FB.init({ appId: window.REBELMOUSE_BOOTSTRAP_DATA.fbId, version: window.REBELMOUSE_BOOTSTRAP_DATA.fbAppVersion, status: true, cookie: true, }); FB.XFBML.parse(); if(fbIframe){ fbIframe.parentNode.removeChild(fbIframe); } }

function loadFacebookScript() { var existingScript = document.querySelector('script[src="https://connect.facebook.net/en_US/sdk.js"'); if (!existingScript) { var script = document.createElement("script"); script.src = "https://connect.facebook.net/en_US/sdk.js"; document.head.appendChild(script); script.addEventListener("load", onScriptLoad); } }

function intersectorCallback(video_player) { var booted = false; var totalSeconds = 0; var interval = null;

function impressionCounter() { totalSeconds++; console.log("I've been watching for " + totalSeconds + " seconds"); } return function intersector(entries) { var entry = entries[0]; if (entry.isIntersecting) { if (!booted) { booted = true; video_player.mute(); video_player.play(); } interval = setInterval(impressionCounter, 1000); } else { if (interval) { console.log("I've stopped watching at " + totalSeconds + " seconds"); clearInterval(interval); interval = null; } } }; }

function trackVideo(video_player) { var observer = new IntersectionObserver(intersectorCallback(video_player), {}); observer.observe(facebookVideo); }

function onFacebookElementLoaded(msg) { if (msg.type === "video" && msg.id === videoId) { trackVideo(msg.instance); } }

function onFacebookReady() { FB.Event.subscribe("xfbml.ready", onFacebookElementLoaded); if (window.oldFacebookWaiter) window.oldFacebookWaiter(); }

if ("FB" in window) { onFacebookReady(); } else { window.oldFacebookWaiter = window.fbAsyncInit; window.fbAsyncInit = onFacebookReady; loadFacebookScript(); }

});

window.REBELMOUSE_TASKS_QUEUE.push(function(){

REBELMOUSE_STDLIB.createElementChangeListener(".mb-2", function(item){ checkSponsoredPost(); })

});

Source: https://www.upworthy.com/biden-announces-300-million-vaccines-by-end-of-may