Home حرب منظمة العفو الدولية تدعو إلى التحقيق في جرائم الحرب بعد أن “طمست...

منظمة العفو الدولية تدعو إلى التحقيق في جرائم الحرب بعد أن “طمست إسرائيل عائلات بأكملها” في لبنان | الأحلام المشتركة

47
0

“),t.type){case”pdf”:if(a.default.isFirefox()||a.default.isEdge()||a.default.isIE())try{if(console.info(“لا يدعم PrintJS حاليًا طباعة PDF في Firefox وInternet Explorer و Edge.”),!0==t.onBrowserIncompatible())window.open(t.fallbackPrintable,”_blank”).focus(),t.onPdfOpen&&t.onPdfOpen()}catch(e){t.onError(e)}finally{t.showModal&&l.default.إغلاق(),t.onLoadingEnd&&t.onLoadingEnd()}else d.default.print(t,o);break;case”image”:f.default.print(t,o);break;case”html”:u.default.print(t,o);break;case”raw-html”:c.default.print(t,o);break;case”json”:s.default.print(t,o)}}}},function(e,t,n){“use الصارم”;Object.defineProperty(t,”__esModule”,{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r},a=n(1);function l(e,t,n){var r=new window.Blob([n],{type:”application/pdf”});r=window.URL.createObjectURL(r),t.setAttribute(“src”,r),i.default.send(e,t)}t.default={print:function(e,t){if(e.base64){var n=Uint8Array.from(atob(e.printable),function(e){return e.charCodeAt(0)});l(e,t,n)}else{e.printable=/^(blob|http)/i.test(e.printable)?e.printable:window.location.origin+(“/”!==e.printable.charAt(0)؟”/”+e.printable:e.printable);var r=new window.XMLHttpRequest;r.responseType=”arraybuffer”,r.addEventListener(“load”,function(){if(-1===[200,201].indexOf(r.status))return(0,a.cleanUp)(e),void e.onError(r.statusText);l(e,t,r.response)}),r.open(“GET”,e.printable,!0),r.send()}}}},function(e,t,n){“use الصارم”;Object.defineProperty(t,”__esModule”,{value:!0});var r,o=n(1),i=n(0),a=(r=i)&&r.__esModule?r:{default:r};t.default={print:function(e,t){var n=document.getElementById(e.printable);n?(e.printableElement=function e(t,n){var r=t.cloneNode();var o=!0;var i=!1;var a=void 0;try{for(var l,d=t.childNodes[Symbol.iterator]();!(o=(l=d.next()).done);o=!0){var u=l.value;if(-1===n.ignoreElements.indexOf(u.id)){var c=e(u,n);r.appendChild(c)}}}catch(e){i=!0,a=e}أخيرًا{try{!o&&d.return&&d.return()}أخيرًا{if(i)رمي a}}switch(t.tagName){case”SELECT”:r.value=t.value;break;case”CANVAS”:r.getContext(“2d”).drawImage(t,0,0)}return r}(n,e),e.header&&(0,o.addHeader)(e.printableElement,e),a.default.send(e,t)):window.console.error(“عنصر HTML غير صالح” المعرف: “+e.printable)}}},function(e,t,n){“use الصارم”;Object.defineProperty(t,”__esModule”,{value:!0});var r,o=n(0),i=(r=o)&&r.__esModule?r:{default:r};t.default={print:function(e,t){e.printableElement=document.createElement(“div”),e.prin tableElement.setAttribute(“style”، “width:100%”),e.printableElement.innerHTML=e.printable,i.default.send(e,t)}}},function(e,t,n){“use الصارم”;Object.defineProperty(t,”__esModule”,{value:!0});var r,o=n(1),i=n(0),a=(r=i)&&r.__esModule?r:{default:r};t.default={print:function(r,e){r.printable.constructor!==Array&&(r.printable=[r.printable]),r.printableElement=document.createElement(“div”),r.printable.forEach(function(e){var t=document.createElement(“img”);t.setAttribute(“style”,r.imageStyle),t.src=e;var n=document.createElement(“div”);n.appendChild(t),r.printableElement.appendChild(n)}),r.header&&(0,o.addHeader)(r.printableElement,r),a.default.send(r,e)}}},function(e,t,n){“use الصارم”;Object.defineProperty(t,”__esModule”,{value:!0});var r,o=”function”==typeof الرمز&&”symbol”==typeof الرمز.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof الرمز&&e.constructor===Symbol&&e!==Symbol.prototype?symbol:typeof e},c=n(1),i=n(0),a=(r=i)&&r.__esModule?r:{default:r};t.default={print:function(t,e){if(“object”!==o(t.printable))رمي خطأ جديد(“غير صالح” كائن بيانات جافا سكريبت (JSON).”);if(“boolean”!=typeof t.repeatTableHeader)throw new Error(“قيمة غير صالحة لسمة RepeatTableHeader (JSON).”);if(!t.properties||!Array.isArray(t.properties))throw new Error(“مصفوفة خصائص غير صالحة لـ JSON الخاص بك” data.”);t.properties=t.properties.map(function(e){return{field:”object”===(void 0===e؟”undef”:o(e))?e.field:e,displayName:”object”===(void 0===e؟”undef”:o(e))?e.displayName:e,columnSize:”object”===(void 0===e؟”undef”:o(e))&&e.columnSize?e.columnSize+”;”:100/t.properties.length+”%;”}}),t.printableElement=document .createElement(“div”),t.header&&(0,c.addHeader)(t.printableElement,t),t.printableElement.innerHTML+=function(e){var t=e.printable,n=e.properties,r=’

‘;e.repeatTableHeader&&(r+=”

“);r+=”

“;for(var o=0;o’+(0,c.capitalizePrint)(n[o].displayName)+””;r+=”

“،e.repeatTableHeader&&(r+=”

“);r+=”

“;ل(فار أنا=0;أنا”;ل(فار أ=0;أ’+l+””}r+=””}return r+=”

“}(t),a.default.send(t,e)}}}]).default}); document.querySelector(‘.all-content-wrapper’).setAttribute(‘id’,’printable’); ChangeListener(‘.lead_post_body_main .share-pinterest, .mobile_social_links .share-pinterest’, function(el) { el.outerHTML=’‘; }); /* https://partners.rebelmouse.com/commondreams/print.css?s=0 */ ChangeListener(‘.lead_post_body_main .share-print, .mobile_social_links .share-print’, function(el) { setTimeout(()=>{ // هذه المهلة المحددة مهمة لتجاوز مستمع الحدث الذي يفرضه النظام el.addEventListener(“click”, function(){ if (navigator.userAgent.indexOf(“Firefox”) > 0) {window.print();}else{ printJS({printable: ‘printable’,type: ‘html’,targetStyles: [‘*’]النمط: `.no-print { العرض: لا شيء! مهم؛ } الجسم { الحشو: 0 20 بكسل؛ تحجيم الصندوق: صندوق الحدود؛ } img { العرض: 100%; } أ { اللون: #000؛ } * { عائلة الخط: اريال ! مهم؛ ارتفاع الخط: 1.6؛ } .widget__subheadline-text { وزن الخط: 400 ! مهم؛ } .photo-caption, .photo-credit, img, a.share, svg, .campaign-article,span.share, .datefixerdate { العرض: لا شيء !مهم; } .trinity-player-iframe-wrapper، .recirculation-wrapper، .newsletter-aside، .rm-embed.embed-media { العرض: لا شيء! مهم؛ } .posts-custom .widget { العرض: كتلة؛ } .row { الهامش السفلي: 0؛ الهامش العلوي: 0px؛ } .clearfix:before, .clearfix:after {display: none !important; } .lead_post_body_main .widget__head, .widget__shares { العرض: لا شيء؛ } svg، .breaking-news-top-wrapper، .normal__blackbar، .sticky__blackbar، .breadcrumbs_mainwrapper، .blackbar، .black_newsletter، .user-prefs، .custom-dbox-popupz، .donate_btn، .grey_donate_block، .menu-global، .modal_donor، .lead_post_tags_seo .body-description، .authors_post_block، .datefixerdate، .widget__shares { العرض: لا شيء؛ } .lead_post_post_body, .lead_post_body_main .posts-custom .widget__headline, .lead_post_body_main .widget__subheadline { max-width: 100%; } .lead_post_body_main .posts-custom p.pull-quote:before {display: none; } .lead_post_body_main .posts-custom p.pull-quote { max-width: 100%; الهامش: 0; الحشو: 10 بكسل 0؛ } .rm-shortcode، .content_newsletter_wrapper، .social_stream_desktop، .lead_post_tags_seo .body-description .around-the-web، .lead_post_tags_seo .body-description .around-the-web * {display: none; } .lead_post_tags_seo .social-author { العرض: لا شيء؛ } .creative_common_work { الحد الأقصى للعرض: 100%؛ الهامش السفلي: 50 بكسل؛ الحد السفلي: 1 بكسل صلب #ccc؛ } .authors_post_block, .lead_post_tags_seo { الحد الأقصى للعرض: 100%; } .lead_post_share_social { الموضع: غير محدد؛ العرض: 100%؛ } .widget__shares { العرض: لا شيء؛ } .singleAuthorPost .social-author__avatar { العرض: لا شيء؛ } .lead_post_share_social .posts-custom .social-author__name، .lead_post_share_social .posts-custom .social-date { العرض: مضمن؛ } .lead_post_share_social .posts-custom .social-date { هامش اليسار: 5px؛ } .lead_post_share_social .posts-custom .social-date:before { content: “|”; العرض: مضمن؛ اللون: فار(–رمادي); الهامش الأيمن: 5 بكسل؛ } .singleAuthorPost .rm-col-center { Margin-bottom: 10px; } .lead_post_tags_seo { الهامش السفلي: 50 بكسل؛ } .creative_common_work { الحشو أسفل: 15px؛ الهامش السفلي: 20 بكسل؛ } .tags .tags__item { العرض: كتلة مضمنة؛ محاذاة العناصر: مركز؛ الحشو: 0 16 بكسل؛ العرض: تلقائي؛ الارتفاع: 35 بكسل؛ الخلفية: #eee؛ نصف قطر الحدود: 35 بكسل؛ اللون: #000؛ ارتفاع الخط: 35 بكسل؛ عائلة الخط: “Lora”، sans-serif؛ نمط الخط: عادي؛ وزن الخط: 400؛ حجم الخط: 12 بكسل؛ محاذاة النص: مركز؛ تحويل النص: الكتابة بالأحرف الكبيرة؛ تحجيم الصندوق: صندوق الحدود؛ الهامش: 0 8px 15px 0; زخرفة النص: لا شيء؛ } .المجال المخصص بعد الثواني، .المجال المخصص-المنبثقة-bg-لون، .المجال المخصص-المنبثق-لون النص، .المجال المخصص-الموقع، .جميع الأقسام ذات الصلة { العرض: لا شيء؛ } h1 { حجم الخط: 34 بكسل؛ } h2 { حجم الخط: 20 بكسل؛ }`}); } }, 200) }); }); }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ if (getCookie(“popupShown”) || (getCookie(“hide_newsletter”) != null && getCookie(“hide_newsletter”))) { console.log(“nothing to do”); setCookie(“hide_newsletter”, “true”, 365); return; } if(document.querySelector(“.popup-modal .mb-2.popup–article #mc-embedded-subscribe”) != null) { const popupform = document.querySelector(“.popup-modal [name=’mc-embedded-subscribe-form’]”); popupform.addEventListener(“submit”, () => { setCookie(“hide_newsletter”, “true”, 365); }); popupform.addEventListener(“click”, () => { setCookie(“hide_newsletter”, “true”, 365); }); /*document.querySelector(“.popup-modal” .mb-2.popup–article #mc-embedded-subscribe”).addEventListener(“click”, function(){ // اضبط ملف تعريف الارتباط “hide_newsletter” على “true” لمدة عام واحد (365 يومًا) setCookie(“hide_newsletter”, “true”, 365); });*/ } const popupBackdrop = document.querySelector(“.popup–backdrop”); const ClosePopupButton = popupBackdrop.querySelector(“. Close-button”); const afterSecondsField = popupBackdrop.querySelector( “.custom-field-after-thanks” )?.textContent; “.custom-field-scrolling-begins” )?.textContent; const customFieldObj = document.querySelector(“.popup–article .custom-field-visible-to-admin-only”); const customBGColor = popupBackdrop.querySelector(‘.custom-field-popup-bg-color’)?.textContent const customTextColor = popupBackdrop.querySelector(‘.custom-field-popup-text-color’)?.textContent popupBackdrop.style.setProperty(‘–background-color’, `${customBGColor}`) popupBackdrop.style.setProperty(‘–text-color’, `${customTextColor}`) const after_thans = Number(afterSecondsField); constscrolling_begins = التمريرBeginsField === “True”; Let lastScrollPosition = 0; Let userHasInteracted = false; getCookie(“userIsAdmin”)) ||.customFieldObj == null) && !getCookie(“popupShown”) ){ popupBackdrop.classList.add(“open”); true, 30; }; if(ClosePopupButton != null) { ClosePopupButton.addEventListener(“click”,hidePopup } const userEvents = [“mousemove”, “mousedown”, “keydown”, “touchstart”]; دع userEventListenersRemoved = false; const userInteraction = () => { userHasInteracted = true; إذا عاد (userEventListenersRemoved) ؛ userEvents.forEach((event) => { document.removeEventListener(event, userInteraction); userEventListenersRemoved = true; }); }; userEvents.forEach((event) => document.addEventListener(event, userInteraction) ); if (!scrolling_begins && !isNaN(after_thans)) { setTimeout(showPopup, after_thans * 1000); } else if (scrolling_begins) { document.addEventListener(“scroll”، debounce(handleScroll, 50)); } function HandleScroll() { console.log(“—-handle Scroll—-“) if (scrolling_begins &&!userHasInteracted) return; إذا (scrolling_begins) { constcurrentScrollPosition = window.scrollY || document.documentElement.scrollTop; constscrollDelta = Math.abs(currentScrollPosition – lastScrollPosition); if (scrollDelta >scrollDeltaThreshold) { setTimeout(showPopup, 0); document.removeEventListener(“scroll”، debounce(handleScroll, 50)); } lastScrollPosition = currentScrollPosition; } } وظيفة debounce(func, wait, Instant = false) { Let timeout; وظيفة الإرجاع (…args) { const context = this; const Later = function () { timeout = null; إذا (! فوري) func.apply(context, args); }; const mustCallNow = فوري && !timeout; ClearTimeout(timeout); timeout = setTimeout(later, wait); إذا (shouldCallNow) func.apply(context, args); }; } // ليتم تنفيذها: ملفات تعريف الارتباط function setCookie(name, value, days) { Let date = new Date(); date.setTime(date.getTime() + day * 24 * 60 * 60 * 1000); Let تنتهي = “expires=” + date.toUTCString(); document.cookie = الاسم + “= + القيمة + “؛” + تنتهي + “;path=/”; } وظيفة getCookie(cname) { Let name = cname + “=”; Let decodedCookie = decodeURIComponent(document.cookie); Let ca = decodedCookie.split(“;”); for (let i = 0; i { var element =entry.target; document.querySelector(“.body .newsletter-aside”).classList.add(“higlight”); console.log(“Intersection******************”); setTimeout(function() { document.querySelector(“.body .newsletter-aside”).classList.remove(“higlight”); console.log(“SetTimeout******************”); }, 2000 }, onBelowViewport: (element) => { document.querySelector(“.body .newsletter-aside”).classList.remove(‘higlight’ }); .newsletter-aside”).classList.remove(‘higlight’); } }); } }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ var test = ‘amnesty-calls-for-war-crimes-probe-after-israel-obliterated-entire-families-in-lebanon’; if(test && test != ” && test != ‘null’ && test != null){ /* إنشاء رمز التعليق */ const leftButtons = document.querySelector(‘.lead_post_share_social .posts-custom .widget__shares’); const facebookSpan = leftButtons.querySelector(‘.share-fb’).parentElement; facebookSpan.insertAdjacentHTML(‘beforeend’,”); fetch(‘https://commons.commondreams.org/t/amnesty-calls-for-war-crimes-probe-after-israel-obliterated-entire-families-in-lebanon/270798.json’, { الطريقة: ‘GET’, الرؤوس: { ‘Accept’: ‘application/json’, }, }).then(response => Response.json()) .then(response =>{ ResponseCount = Response.posts_count – 1; document.querySelector(‘.comment_round_button .comment_count’).textContent = ResponseCount; /* يُظهر هذا السطر عداد الرد في زر الخطاب الكبير:: */ /* document.querySelector(‘.discourse-btn .btn’).textContent += ` (${replyCount})`; const commentsBtn = document.querySelector(‘.comment_round_button’); commentsBtn.addEventListener(‘click’, function(ev){ window.open(commentsBtn.dataset.link, ‘_blank’); }); /*document.querySelector(“.share-plus.js-toggle”).addEventListener(“click”, function(ele){ document.querySelector(“.comment_round_button”).classList.toggle(“hide-button”); });*/ }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ REBELMOUSE_STDLIB.createElementChangeListener(‘.lead_post_tags_seo .social-author__name’, function(el) { if(el.nextElementSibling && el.nextElementSibling.classList.contains(‘social-author__bio’)) { el.nextElementSibling.insertAdjacentHTML(‘afterend’, ‘

‘); } else { el.insertAdjacentHTML(‘afterend’,’

‘); } }); }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ REBELMOUSE_STDLIB.createElementChangeListener(“.newsletter-campaign .custom-field-source-text”، function(button){ Button.setAttribute(‘data-before’, ”); Button.innerHTML=”; }) }); window.REBELMOUSE_ACTIVE_TASKS_QUEUE.push(function(){ /* التحقق من تعيين الموضع بحقل منشور مخصص، إذا لم يكن حقلًا افتراضيًا (أعلاه) – قم بتغيير الموضع إلى مخصص */ const blockPlacement = () => { const newsletterBlock = document.querySelector(‘.js-newsletter-wrapper’); const placePosition = document.querySelector(‘.custom-field-newsletter-position’) ? document.querySelector(‘.custom-field-newsletter-position’).innerText : false; placePosition === ‘above’ ||.placePosition === ” ? false : targetBlock.insertAdjacentElement(‘afterend’, newsletterBlock); {
const articleElement = entry.target;
console.log(‘boost_viewable’, articleElement)
const boosted_page = articleElement.querySelector(
“a.widget__headline-text”
).href;
gtag(“event”, “boost_viewable”, {
boosted_page: boosted_page,
});
},
});

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

const breakingNewsTop = document.querySelector(
“.breaking-news-top-wrapper .breaking-news-top”
);

function checkCustomField() {
if (breakingNewsTop.children.length > 0) {
let customFieldObj = breakingNewsTop.querySelector(
“.custom-field-visible-to-admin-only”
);
if (
!getCookie(“userIsAdmin”) &&
customFieldObj &&
customFieldObj.innerHTML == “True”
) {
document.querySelector(“.breaking-news-top-wrapper”).style.display =
“none”;
document.body.classList.remove(“expanded-header”);
document.body.classList.remove(“collapsed-header”);

} else {
document
.querySelector(“.breaking-news-top-wrapper.journey-unit”)
.classList.remove(“hidden”);
}
}
}
checkCustomField();

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

console.log(‘You are in the CWV BTEST’);
let breakingNewsHeight = 0;

function isMobile() {
return /Mobi|Android|iPhone|iPod|BlackBerry|Opera Mini|IEMobile|WPDesktop/i.test(navigator.userAgent);
}

function isIpadByWidth() {
const width = window.innerWidth;
const height = window.innerHeight;

// Common iPad viewport widths in portrait & landscape
const ipadWidths = [810, 820, 834, 1024, 1138, 1180, 1366];

return ipadWidths.includes(width) || ipadWidths.includes(height) || window.innerWidth > 767;
}

if (isIpadByWidth()) {
console.log(‘User is likely on an iPad’);
}

window.scroll_distance = 0;
window.scroll_up = false;
window.max_scroll = 0;

const documentBody = document.body;

const payWallWrapper = document.getElementsByClassName(‘paywall-bar__wrapper’)[0];

const breakingNewsWrapper = document.querySelector(‘.breaking-news-top-wrapper’);

const breakingNewsTop = document.querySelector(‘.breaking-news-top-wrapper .breaking-news-top’);

const customFieldObj = breakingNewsTop.querySelector(‘.custom-field-visible-to-admin-only’);

const customFieldMobileObj = breakingNewsTop.querySelector(‘.custom-field-cta-visible-mobile’);

const payWallCaret = document.querySelector(‘#paywall-bar__caret’);

function setSessionCookie(name, value) {
document.cookie = name + ‘=’ + encodeURIComponent(value) + ‘; path=/’;
}

if (breakingNewsTop.children.length > 0) {
payWallCaret.classList.remove(‘hidden’);

if (!getCookieValue(‘userIsAdmin’) && customFieldObj && customFieldObj.innerHTML == ‘True’) {
deleteCookie(‘superHeader’);
documentBody.classList.remove(‘collapsed-header’);
documentBody.classList.remove(‘expanded-header’);
}

if (getCookieValue(‘superHeader’) == ‘collapsed’) {
payWallWrapper.classList.add(‘paywall-bar__collapsed’);
payWallWrapper.classList.remove(‘paywall-bar__expanded’);
documentBody.classList.add(‘collapsed-header’);
documentBody.classList.remove(‘expanded-header’);
} else {
payWallWrapper.classList.add(‘paywall-bar__expanded’);
payWallWrapper.classList.remove(‘paywall-bar__collapsed’);
documentBody.classList.remove(‘collapsed-header’);
documentBody.classList.add(‘expanded-header’);
}

setTimeout(function () {
window.scrollTo(0, 0);
}, 500);
}

function deleteCookie(name) {
document.cookie = name + “=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;”;
}

function getCookieValue(name) {
// Split the document.cookie string into individual cookies
let cookies = document.cookie.split(‘;’);

// Loop through the cookies to find the one with the specified name
for (let i = 0; i breakingNewsHeight + 150 && breakingNewsHeight >= 0) {
documentBody.classList.add(‘fixed-nav’);
if (breakingNewsTop.children.length > 0) {
if (!getCookieValue(‘userIsAdmin’) && customFieldObj && customFieldObj.innerHTML == ‘True’) {
deleteCookie(‘superHeader’);
documentBody.classList.remove(‘collapsed-header’);
documentBody.classList.remove(‘expanded-header’);
} else if (!isIpadByWidth() && isMobile() && customFieldMobileObj == null) {
deleteCookie(‘superHeader’);
documentBody.classList.remove(‘collapsed-header’);
documentBody.classList.remove(‘expanded-header’);
} else {
setSessionCookie(‘superHeader’, ‘collapsed’);
documentBody.classList.add(‘collapsed-header’);
documentBody.classList.remove(‘expanded-header’);
payWallWrapper.classList.add(‘paywall-bar__collapsed’);
payWallWrapper.classList.remove(‘paywall-bar__expanded’);
}
}
if (window.scrollY > window.scroll_distance) {
window.scroll_up = false;
} else {
if (window.scrollY > window.scroll_distance – 20) {
window.scroll_up = true;
documentBody.classList.remove(‘scroll-down’);
documentBody.classList.add(‘scroll-up’);
// console.log( “scrolling up” );
} else {
// console.log( “scrolling in the between” );
}
}
} else {
documentBody.classList.remove(‘fixed-nav’);
documentBody.classList.remove(‘scroll-down’);
documentBody.classList.remove(‘scroll-up’);
}

window.scroll_distance = window.scrollY;
}

function debounce(fun, time) {
var timeout = null;

function execute() {
timeout = null;
fun();
}

return function debouncedFun() {
if (timeout) {
return;
}

timeout = setTimeout(execute, time);
};
}

let previousHeight = breakingNewsWrapper.offsetHeight;

const resizeObserver = new ResizeObserver((entries) => {
for (const entry of entries) {
if (entry.contentRect.height !== previousHeight) {
//console.log(“The height of the element has changed.”);
previousHeight = entry.contentRect.height;
breakingNewsHeight = previousHeight;
resizeObserver.disconnect();
}
}
});

resizeObserver.observe(breakingNewsWrapper);

window.addEventListener(‘scroll’, debounce(onScroll, 50), {
passive: true,
});

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

//
(function(w,d,s,n,a){if(!w[n]){var l=’call,catch,on,once,set,then,track’
.split(‘,’),i,o=function(n){return’function’==typeof n?o.l.push([arguments])&&o
:function(){return o.l.push([n,arguments])&&o}},t=d.getElementsByTagName(s)[0],
j=d.createElement(s);j.async=!0;j.src=’https://cdn.fundraiseup.com/widget/’+a;
t.parentNode.insertBefore(j,t);o.s=Date.now();o.v=4;o.h=w.location.href;o.l=[];
for(i=0;i<7;i++)o[l[i]]=o(l[i]);w[n]=o}
})(window,document,'script','FundraiseUp','ANRLZVWL');
//

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

//ChangeListener(‘.custom-dbox-popupz, .donate_round_button’, function(el){el.addEventListener(“click”, function(){document.querySelector(‘.modal_donor’).style.display=’block’;})});

ChangeListener(‘.all-related-sections a’, function(el){
console.log(el.innerText);
if(el.innerText == ‘Source’) {
document.querySelector(‘.creative_common_work’).classList.add(‘actz’);
}
});

ChangeListener(‘.lead_post_share_social’, function (el) {
let social_date = el.querySelector(‘.social-date’).outerHTML;
el.querySelector(‘.social-date’).remove();
el.querySelector(‘.social-author’).insertAdjacentHTML(‘beforeend’,social_date);
});

document.querySelectorAll(‘p’).forEach(p => {
if (p.innerHTML.trim() === ‘
‘) {
p.remove();
}
});

ChangeListener(‘.lead_post_body_main .share-pinterest, .mobile_social_links .share-pinterest’, function(el) {
el.setAttribute(‘href’,’javascript:window.print();’);
el.querySelector(‘i’).classList.remove(‘fa-pinterest’);
el.querySelector(‘i’).classList.add(‘fa-print’);
el.setAttribute(‘data-track-share’,’Print’);
el.setAttribute(‘aria-label’,’Print Page’);
el.insertAdjacentHTML(‘afterend’, ‘‘);

});

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

window.postContentParent = document.querySelector(‘.lead_post_post_body .body-description’);

window.postContentParent.querySelectorAll(“.pull-quote”).forEach(currentPl => {
currentPl.classList.add(“trinity-skip-it”);
});

var encodedURI = encodeURI(‘https://www.commondreams.org/news/israel-lebanon-war-crimes’);
var trinityNode = document.createElement(‘script’);
trinityNode.src = ‘https://trinitymedia.ai/player/trinity/2900021701/?pageURL=’ + encodedURI;

if (window.postContentParent) {
window.postContentParent.prepend(trinityNode);
}

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

var parentDiv = document.querySelector(‘.lead_post_body .body .body-description’);

var isListiclePost = parentDiv.querySelector(“.rebellt-item”);
var recircUnit2 = document.querySelector(“.recirculation-post2”);

if(isListiclePost != undefined) {
parentDiv.insertBefore(recircUnit2, parentDiv.querySelectorAll(“.rebellt-item”)[3]);
document.querySelector(“.recirculation-post2”).classList.remove(“hidden”);
} else {
// Find the second paragraph
var paragraphs = parentDiv.getElementsByTagName(‘p’);
if(paragraphs.length > 2) {
// Insert the player div after the second paragraph
parentDiv.insertBefore(recircUnit2, paragraphs[2]);
} else {
parentDiv.insertBefore(recircUnit2, paragraphs[1]);
}
document.querySelector(“.recirculation-post2”).classList.remove(“hidden”);
}

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

if(document.querySelector(“.newsletter-and-social #mc-embedded-subscribe”) != null) {
const stickyform = document.querySelector(“.newsletter-and-social [name=’mc-embedded-subscribe-form’]”);
stickyform.addEventListener(“submit”, () => {
setCookie(“hide_newsletter”, “true”, 365);
});
stickyform.addEventListener(“click”, () => {
setCookie(“hide_newsletter”, “true”, 365);
});
}

const stringPortion = “Thank you for subscribing”;
const userMessage =
“You’re already subscribed, your profile has been updated. Thank you!”;
const expectedMessage = “You’re already subscribed. Thank you!”;

let target = document.querySelector(“.newsletter-and-social #mce-success-response”);

let observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
console.log(“CurrentText”,target.innerHTML);
if (
target.innerHTML === userMessage
) {
console.log(“text changed!!!”)
target.innerHTML = expectedMessage;
}
});
});

const config = { attributes: true, childList: true, characterData: true };

observer.observe(target, config);

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

/*
Checking the custom field for the form submit button text, if it is set – change the default one to custom
*/
const setCustomText = () => {
const customButtonText = document.querySelector(‘.custom-field-newsletter-button-text’) ? document.querySelector(‘.custom-field-newsletter-button-text’).innerText : false;

if (!customButtonText) {
return false;
}

const formButton = document.querySelector(‘.newsletter-wrapper .widget ._submit’);
let result;
if (formButton) {result = formButton.innerText = `${customButtonText}`;}

return result
}

setCustomText();

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

const controlElement = document.querySelector(‘.popup-control-wrapper .widget__subheadline-text p’);

let popupDelay;

if (controlElement) {
popupDelay = Number(controlElement.innerText) * 1e3;
}

if (popupDelay) {
const showDonateModal = () => {
const donateButton = document.querySelector(‘.custom-dbox-popupz’);

if (donateButton) {
donateButton.click();
return true
}

return false;
}

const startTimer = () => setTimeout(showDonateModal, popupDelay);

const checkCookie = () => {
const isDonateWindowClosed = localStorage.getItem(‘donateClosed’);

if (!isDonateWindowClosed) {
return startTimer();
}

const item = JSON.parse(isDonateWindowClosed);
const now = new Date();

if (now.getTime() > item.expiry) {
localStorage.removeItem(‘donateClosed’);

return startTimer();
}
}

checkCookie();

const setCookie = (key, ttl) => {
const now = new Date();

const item = {
value: true,
expiry: now.getTime() + 6000000,
};

return localStorage.setItem(‘donateClosed’, JSON.stringify(item));
}

const donateClose = document.querySelector(‘.modal_close’);

donateClose.addEventListener(‘click’, setCookie, false);
}

});

window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){

const addDonateButton = () => {
const campaignArticles = Array.from(document.querySelectorAll(‘.campaign-article’));

if (campaignArticles.length {
const widgetBody = article.querySelector(‘.widget__body’);

if (!widgetBody) {
return false;
}

const button = `