Bernardo Sim

Bernardo Sim is a writer, editor, and content creator. Born in Brazil, he currently lives in South Florida. You can follow him on Instagram at @bernardosim.

Bernardo Sim is a writer, editor, and content creator. Born in Brazil, he currently lives in South Florida. You can follow him on Instagram at @bernardosim.

}); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ window.injectRecirculation = () => { const selector = '.particle__post .listicle-wrapper-one'; const listicles = document.querySelectorAll(selector); if (listicles.length < 3) { return; } const targetFirstListicle = listicles[2]; const parentElem = targetFirstListicle.parentElement; const widgetFirst = document.createElement('div'); widgetFirst.classList.add('recirculation__placeholder--hot-stories'); parentElem.insertBefore(widgetFirst, targetFirstListicle.nextSibling); }; injectRecirculation(); // For this Vertical Gallery Layout only REBELMOUSE_STDLIB.createElementChangeListener(".video-section.vertical-wrap .body .body-description", function(articleElement){ const recentStories = document.querySelector('.recirculation--recent'); if(recentStories){ articleElement.append(recentStories); recentStories.style.display = "block"; } }) }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ const selector = ".rm-shortcode:has(iframe[id^='instagram-embed'], iframe[id^='twitter-widget'])"; REBELMOUSE_STDLIB.createElementChangeListener(selector, function (embed) { console.log(embed); let div = document.createElement("div"); div.classList.add("embed_blur_overflow"); div.innerHTML = "

EXPAND

"; div.addEventListener("click", function () { if (div.closest(".rm-shortcode")) { div.closest(".rm-shortcode").style.height = "auto"; } if (div.closest(".rm-embed-instagram")) { div.closest(".rm-embed-instagram").style.height = "auto"; } if (div.closest(".rm-embed-twitter")) { div.closest(".rm-embed-twitter").style.height = "auto"; } if ( div.previousElementSibling.classList.contains("rm-embed-instagram") || div.previousElementSibling.classList.contains("rm-embed-twitter") ) { div.previousElementSibling.style.height = "auto"; } div.closest(".embed_blur_overflow").style.display = "none"; }); embed.append(div); }); });