Blurb:
Last weekend, an attempted bombing occurred outside Gracie Mansion, the official residence of New York City’s Muslim mayor, Zohran Mamdani (D). During a heated clash between anti-Islam protesters and a group of counterprotesters, two teenagers from Pennsylvania — 18-year-old Emir Balat and 19-year-old Ibrahim Kayumi — allegedly threw two improvised explosive devices toward the crowd.
Fortunately, neither bomb detonated, and no one was injured. Both Balat and Kayumi were arrested and charged with attempting to provide material support to a designated foreign terrorist organization, using a weapon of mass destruction, transportation of explosive materials, and unlawful possession of destructive devices.
TPUSA Frontlines photojournalist Gabriel Victal was present at the scene when the attack occurred. But the attempted bombing, he says, “wasn’t the first instance” of violence.
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
tp = window.tp || [];
// Hook execute when login was successful
tp.push(['addHandler', 'loginSuccess', function() {
// Get list of all access data
tp.api.callApi('/access/list', {}, function(data) {
if (typeof data.data != "undefined") {
// Loop through all possible access objects
for (var i in data.data) {
// Was access granted?
if (data.data[i].granted) {
// All good, user just logged in, we can close the offer
tp.offer.close();
// Additionally we can refresh the page
location.reload();
}
}
}
});
}]);
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
window.REBELMOUSE_STDLIB.loadExternalScript("//static.rebelboost.com/tracking/v1.min.js", function() {
rebelboost.init({
origin: 'theblaze.com',
gdpr: 'permissive',
consent: 'onetrust',
});
window.REBELMOUSE_STDLIB?.context?.eventBus?.subscribe('url:change', () = {
rebelboost.pageView();
});
});
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
REBELMOUSE_STDLIB.createElementChangeListener('.widget', function(post) {
let sections = post.querySelectorAll('.all-related-sections a');
if (!sections) {
return false;
}
sections.forEach((s) = {
if (s.href && s.href.includes('/original/')) {
post.classList.add('is-original');
}
if (s.href && s.href.includes('/exclusive/')) {
post.classList.add('is-exclusive');
}
});
});
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
window.REBELMOUSE_STDLIB.createElementChangeListener(".rm-loadmore-placeholder", (elem) = {
window.COMSCORE && COMSCORE.beacon({c1: "2", c2: "6036262"});
});
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
setTimeout(function(){
//Facebook Pixel Code
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1398069580413568');
fbq('track', 'PageView');
}, 3000);
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
window.cookiesButton = function() {
REBELMOUSE_STDLIB.createElementChangeListener('body #ot-sdk-btn-floating', function(button) {
REBELMOUSE_STDLIB.onElementInViewport({
selector: '.main .footer',
onIntersect: function(entry) {
if (!button.classList.contains('change-color')) {
button.classList.add('change-color');
}
},
threshold: 50,
onBellowViewport: function(element) {
if (button.classList.contains('change-color')) {
button.classList.remove('change-color');
}
}
});
});
};
window.cookiesButton();
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
//Converts ISO 8601 Dates US Int format
function dateISO8601toInt({ dateString, options }){
const date = new Date(dateString)
return new Intl.DateTimeFormat('en-US', options).format(date);
}
function onIntersect(entry){
const pianoModule = entry.target
const moduleDatesElements = pianoModule.querySelectorAll(".widget .social-date__text") ?? []
if(moduleDatesElements.length === 0){
throw new Error('There are not .widget .social-date__text HTML elements present in this page to convert ')
}
const dateOptions = {
year: 'numeric',
month: 'short',
day: '2-digit',
timeZone: 'UTC' //important to avoid unexpected time offsets
};
Array.from(moduleDatesElements).forEach( element = {
element.innerText = dateISO8601toInt({dateString: element.innerText, options: dateOptions })
})
}
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
let activeStories = null;
const more_container = document.querySelector(".more-stories__container");
more_container.style.display = 'none';
const frompiano = document.querySelector(".more-stories.frompiano")
const fromposts = document.querySelector(".more-stories.fromposts")
setTimeout(() = init(), 500);
const init = () = {
const adBoxEl = document.querySelector(".ad-box");
const hasAdBlock = window.getComputedStyle(adBoxEl)?.display === "none";
if (hasAdBlock) {
activeStories = "from_rm";
frompiano.remove();
} else {
activeStories = "from_piano";
fromposts.remove();
}
gtag('event', 'morestories_impression', {
'ms_cta': 'in_body',
'ms_source': activeStories,
...pageparams
});
const linkselector = hasAdBlock ? ".more-stories__container .widget a" : ".more-stories__container .cx-flex-module a";
REBELMOUSE_STDLIB.createElementChangeListener(linkselector, function(elem) {
elem.addEventListener("click", function (e) {
const hrefLink = (e.target.href == undefined) ? elem.closest('a').href : e.target.href;
gtag('event', 'morestories_click', {
'ms_cta': 'in_body',
'ms_source': activeStories,
'post_link_url': hrefLink,
...pageparams
});
})
});
adBoxEl.remove();
more_container.style.display = 'block';
}
REBELMOUSE_STDLIB.onElementInViewport({
threshold: 0,
oneTime: true,
selector: '.more-stories__container',
onIntersect: () = {
gtag('event', 'morestories_viewable', {
'ms_cta': 'in_body',
'ms_source': activeStories,
...pageparams
});
}
})
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
const bodyDescription = document.querySelector('.body-description');
const nestedDiv = bodyDescription?.firstElementChild.tagName === 'DIV' ? bodyDescription.firstElementChild : null;
const postBodyContainer = (nestedDiv || bodyDescription);
const newsletter = document.querySelector('.newsletter-related__stories-block');
const addElementAfterParagraphs = (element, paragraphNumber, alwaysInsert)= {
const allArticleParapgraphs = postBodyContainer.querySelectorAll(':scope p:not(:empty), :scope .rebellt-item');
if (alwaysInsert && !allArticleParapgraphs?.length){ // if the post has no paragraphs or is empty
element.classList.add('mt-3');
return postBodyContainer?.insertAdjacentElement('afterend', element);
} else if (allArticleParapgraphs[paragraphNumber-1]) {
return allArticleParapgraphs[paragraphNumber-1].insertAdjacentElement('afterend', element);
}
else if (alwaysInsert) {
const lastParagraph = allArticleParapgraphs[allArticleParapgraphs.length - 1];
return lastParagraph?.insertAdjacentElement('afterend', element);
}
}
if (newsletter) {
addElementAfterParagraphs(newsletter, 5, true);
}
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
let activeStories = null;
const more_container = document.querySelector(".related-stories__container");
more_container.style.display = 'none';
const frompiano = document.querySelector(".related-stories.frompiano")
const fromposts = document.querySelector(".related-stories.fromposts")
setTimeout(() = init(), 500);
const init = () = {
const adBoxEl = document.querySelector(".ad-box");
const hasAdBlock = window.getComputedStyle(adBoxEl)?.display === "none";
if (hasAdBlock) {
activeStories = "from_rm";
frompiano.remove();
} else {
activeStories = "from_piano";
fromposts.remove();
}
gtag('event', 'relcontent_impression', {
'ms_cta': 'in_body',
'ms_source': activeStories,
...pageparams
});
const linkselector = hasAdBlock ? ".related-stories__container .widget a" : ".related-stories__container .cx-image-on-right a";
REBELMOUSE_STDLIB.createElementChangeListener(linkselector, function(elem) {
elem.addEventListener("click", function (e) {
const hrefLink = (e.target.href == undefined) ? elem.closest('a').href : e.target.href;
gtag('event', 'relcontent_click', {
'ms_cta': 'in_body',
'ms_source': activeStories,
'post_link_url': hrefLink,
...pageparams
});
})
});
adBoxEl.remove();
more_container.style.display = 'flex';
}
REBELMOUSE_STDLIB.onElementInViewport({
threshold: 0,
oneTime: true,
selector: '.related-stories__container',
onIntersect: () = {
gtag('event', 'relcontent_viewable', {
'ms_cta': 'in_body',
'ms_source': activeStories,
...pageparams
});
}
})
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
function getScrollbarWidth() {
const outer = document.createElement('div');
outer.style.visibility = 'hidden';
outer.style.overflow = 'scroll';
outer.style.position = 'absolute';
outer.style.top = '-9999px';
outer.style.width="100px";
document.body.appendChild(outer);
const inner = document.createElement('div');
inner.style.width="100%"
outer.appendChild(inner);
const scrollbarWidth = outer.offsetWidth - inner.offsetWidth;
document.body.removeChild(outer);
return scrollbarWidth;
}
function changeAdUnitPosition(adUnit) {
const scrollbarWidth = getScrollbarWidth();
if (scrollbarWidth === 0) {
adUnit.style.marginLeft="calc(-50vw + 50%)";
adUnit.style.width="calc(100vw)";
} else if (scrollbarWidth 0) {
const userAgent = window.navigator.userAgent;
if (userAgent.indexOf('Win') !== -1) {
adUnit.style.marginLeft="calc(-50vw + (50% + 8px))";
adUnit.style.width="calc(100vw - 17px)";
} else if (userAgent.indexOf('Mac') !== -1) {
adUnit.style.marginLeft="calc(-50vw + (50% + 7px))";
adUnit.style.width="calc(100vw - 15px)";
}
}
}
function adObserver(adUnit) {
if (!adUnit) return;
const observer = new MutationObserver(function () {
changeAdUnitPosition(adUnit);
});
observer.observe(adUnit, { attributes: true, childList: true, subtree: true });
changeAdUnitPosition(adUnit);
}
// in ad
const adUnitPlaceholder = document.querySelector('.ad-unit-in-article-wrapper');
addElementAfterParagraphs(adUnitPlaceholder, 6);
setTimeout(() = {
// top & bottom ads
const adTopUnitPlaceholder = document.querySelector('.ad-unit-top-article-wrapper');
const adBottomUnitPlaceholder = document.querySelector('.ad-unit-bottom-article-wrapper');
const mainWidgetBody = document.querySelector('.article__main .rm-col-center .widget__body');
addElementAboveWidgetBody(adTopUnitPlaceholder, mainWidgetBody);
addElementBelowPostBody(adBottomUnitPlaceholder, mainWidgetBody);
}, 200);
REBELMOUSE_STDLIB.createElementChangeListener('.ad-units', function() {
const adInUnit = document.querySelector('.ad-unit-in-article');
const adTopUnit = document.querySelector('.ad-unit-top-article');
const adBottomUnit = document.querySelector('.ad-unit-bottom-article');
adObserver(adInUnit);
adObserver(adTopUnit);
adObserver(adBottomUnit);
})
window.addEventListener('resize', () = {
const adUnit = document.querySelector('.ad-unit-in-article');
const adTopUnit = document.querySelector('.ad-unit-top-article');
const adBottomUnit = document.querySelector('.ad-unit-bottom-article');
if (adUnit) {
changeAdUnitPosition(adUnit);
}
if (adTopUnit) {
changeAdUnitPosition(adTopUnit);
}
if (adBottomUnit) {
changeAdUnitPosition(adBottomUnit);
}
});
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
REBELMOUSE_STDLIB.createElementChangeListener('.tp-modal', function(popup) {
// if(popup)
// popup.remove()
// document.body.classList.remove("tp-modal-open")
// const backdrop = document.querySelector(".tp-backdrop")
// if(backdrop)
// backdrop.remove()
})
/*const pianoDiv = document.querySelector(".piano-bottom-paywall")
//emulates piano unit populate
setTimeout( () = {
pianoDiv.innerHTML = "
PUPULATEDD
"
}, 1000)*/
/* ******* CODE FROM ABOVE SHOULD BE REMOVED ONCE PIANO IS SET UP **/
REBELMOUSE_STDLIB.createElementChangeListener('.piano-bottom-paywall', function(pianoUnit) {
const mutationCallback = (mutationList, observer) = {
for(const mutation of mutationList){
if(mutation.type === "childList"){
// checks if piano-bottom-unit is populated to move up elements
if(pianoUnit.hasChildNodes() || pianoUnit.textContent.trim() !== ''){
// Removes post content
const limit = 10;
const articleContent = document.querySelector(".article__main-container .body .body-description")
if (articleContent) {
const children = Array.from(articleContent.childNodes);
children.slice(limit).forEach(node = node.remove());
}
const articleWidgetShares = document.querySelector(".article__main-container .widget__shares")
if(articleWidgetShares)
articleWidgetShares.remove()
//Removes post page bottom blocks(More content, etc...)
const articleBottomContainer = document.querySelector(".article__bottom-container")
if(articleBottomContainer)
articleBottomContainer.remove()
observer.disconnect()
}
}
}
}
const observer = new MutationObserver(mutationCallback)
const observerConfig = { childList: true, subtree: true }
observer.observe(pianoUnit, observerConfig)
})
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
const pianoContainer = document.querySelector('.piano-bottom-paywall');
if (pianoContainer) {
const observer = new MutationObserver(() = {
if (pianoContainer.innerHTML.trim() !== '') {
document.querySelector('.bottom-paywall')?.classList.add('has-paywall');
}
});
observer.observe(pianoContainer, { childList: true, subtree: true });
}
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
const floatingCopy = document.querySelector('.floating-copy');
const floatingLogo = document.querySelector('.floating-logo');
const lastOverlap = false
function checkOverlap() {
const rect1 = floatingCopy.getBoundingClientRect();
const rect2 = floatingLogo.getBoundingClientRect();
const isOverlap = !(rect1.right < rect2.left || rect1.left > rect2.right ||
rect1.bottom < rect2.top || rect1.top > rect2.bottom);
if(isOverlap && window.getComputedStyle(floatingLogo).opacity 0){
floatingCopy.classList.add('hide')
}else{
floatingCopy.classList.remove('hide')
}
}
checkOverlap(); // Initial check
let resizeTimeout;
function handleResize() {
clearTimeout(resizeTimeout);
resizeTimeout = setTimeout(function() {
console.log('Window resize finished');
checkOverlap()
}, 600); // Adjust the debounce delay as needed
}
// Add event listeners
window.addEventListener('resize', handleResize);
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
window.checkPianoUser(() = {
document.querySelectorAll('.tip-jar__container, .tip-jar-support__container').forEach((el) = {
el.classList.add('show');
});
});
window.onLoginPiano(function() {
document.querySelectorAll('.tip-jar__container, .tip-jar-support__container').forEach((el) = {
el.classList.add('show');
});
});
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
let images = document.querySelectorAll('p.shortcode-media.shortcode-media-rebelmouse-image');
images.forEach((image) = {
imageWidth = image.querySelector('img').width;
console.log(imageWidth)
image.style.cssText = `width: ${imageWidth}px; margin-left: auto; margin-right: auto;`;
})
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
REBELMOUSE_STDLIB.createElementChangeListener(".listicle-slideshow .rebellt-ecommerce--sum",function(item) {
const description = item.nextElementSibling;
description.classList.add("margin-top");
item.remove();
});
...
from www.theblaze.com