PageSourceSearch

https://www.zerounoweb.it/wp-content/plugins/WPPlugin-RateMyPostExtra//build/index.js?ver=54be9ba3452b7d8b3f95

js zerounoweb.it collected 2026-10-02 05:00:12 UTC 4,623 bytes, 1 lines download raw bytes

1(()=>{"use strict";const t=t=>{const e=`; ${document.cookie}`.split(`; ${t}=`);if(2!==e.length)return"";const n=e.pop().split(";").shift();try{return decodeURIComponent(n)}catch(t){return n}},e=t=>{"function"==typeof window.agendaToast&&window.agendaToast(t)},n=t=>{["I","svg","path","circle"].includes(t.target.nodeName)&&t.target.closest(".js-rmp-rating-item")?r(t):t.target.classList.contains("rmp-feedback-widget__btn")&&a(t)},r=e=>{const n=e.target.closest(".js-rmp-rating-item"),r=n.dataset.postid,a=document.querySelector(`.ratemypostextra-container .rmp-widgets-container[data-post-id="${r}"]`);if(a.querySelector("ul li.active"))return;const i=n.dataset.value,o=a.querySelector(`ul li[data-value="${i}"]`);if(!o)return;o.classList.add("active");const s=new Date(Date.now()+5184e6),c=t("rmp-rate-extra");if(c){if(c.indexOf(`,${r}:`)>=0){const t=c.indexOf(`,${r}:`),e=c[t+r.length+2],n=c.replace(`,${r}:${e}`,`,${r}:${i}`);return void(document.cookie=`rmp-rate-extra=${n};expires=${s.toUTCString()};path=/`)}document.cookie=`rmp-rate-extra=${c},${r}:${i};expires=${s.toUTCString()};path=/`}else document.cookie=`rmp-rate-extra=,${r}:${i};expires=${s.toUTCString()};path=/`},a=t=>{const e=t.target.dataset.postid,n=document.querySelector(`.ratemypostextra-container .rmp-widgets-container[data-post-id="${e}"]`),r=n.querySelector(".rmp-feedback-widget textarea");r&&""!==r.value&&(n.querySelector(".rmp-feedback-widget .rmp-heading--title").textContent=rmpExtraFrontend.thanks_feedback_message)},i=e=>{let n=!1;const r=t("rmp-rate"),a=t("rmp-rate-extra");if(""!==r&&""!==a&&r.split(",").includes(e)){const t=a.indexOf(`,${e}:`);n=-1!==t&&a[t+`,${e}:`.length]}n&&document.querySelector(`.ratemypostextra-container .rmp-widgets-container[data-post-id="${e}"]`).querySelector(`ul li[data-value="${n}"]`).classList.add("active")};(t=>{const e=()=>{t.querySelector("body").addEventListener("click",n);const e=t.querySelector(".js-rmp-rating-item");if(e){const t=e.dataset.postid;i(t)}const r=t.querySelector(".rmp-heading--title");r&&(r.textContent=rmpExtraFrontend.plugin_heading)};"loading"===t.readyState?t.addEventListener("DOMContentLoaded",e):e()})(document),window.InitRateMyPostExtraInfinityScroll=t=>{const e=t.indexOf('id="post-'),n=t.substring(e+9),r=n.substring(0,n.indexOf('"'));document.querySelector(`.ratemypostextra-container .rmp-widgets-container[data-post-id="${r}"]`)&&(rate_my_post.init_single_rate_my_post(r,!1),i(r))},window.addEventListener("DOMContentLoaded",(function(){document.body.addEventListener("click",c),document.body.addEventListener("click",o),document.body.addEventListener("change",l)}));const o=t=>{t.target.classList.contains("btn__mail")&&(t.target.classList.add("btn__mail_second_disabled"),function(t){const n=document.querySelectorAll(".input-email");let r=null;for(let t=n.length-1;t>=0;t--)if(""!==n[t].value){r=n[t].value;break}if(r&&d(r)){const n=new URLSearchParams;n.append("email",r),n.append("action","subscription_action");const a=document.getElementById("nl_specific_id");null!==a&&n.append("canali[]",a.value);let i=[];i=document.querySelectorAll(".cessione__terzi .filled-in:checked"),i.length>0&&n.append("third_party",!0),fetch(rmpExtraFrontend.admin_ajax,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n}).then((t=>t.json())).then((t=>{let n=t?.data?.message;if(!n)throw new Error;var r;r=n,n=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,e(n)})).catch((function(){e(translations.newsletterSubscribeError+"\n"+translations.newsletterSubscribeErrorTryLater)})).finally((function(){t.classList.remove("btn__mail_second_disabled")}))}else t.classList.remove("btn__mail_second_disabled"),e(translations.insertValidEmail)}(t.target))},s=[],c=t=>{if(!t.target.classList.contains("rmpextra-rating-negative")&&!t.target.classList.contains("rmpextra-rating-positive")&&!t.target.classList.contains("rmpextra-rating-background"))return;const e=t.target.closest(".js-rmp-rating-item");if(!e)return;const n=e.dataset.value,r=e.dataset.postid;if(s.includes(r))return;if(s.push(r),3>parseInt(n,10))return;
1const a=document.querySelector(`.rmp-widgets-container[data-post-id="${r}"]`),i=a.querySelector(".newsletter-form"),o=a.querySelector(".rmp-feedback-widget__input");rmpExtraFrontend.has_newsletter&&i&&i.classList.remove("hide"),o&&(o.placeholder=rmpExtraFrontend.positive_feedback)},d=t=>""!==t&&/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(t),l=t=>{if(t.target.classList.contains("cessione_checkbox")){const e=t.target.checked;document.querySelectorAll(".cessione_checkbox").forEach((t=>{t.checked=e}))}}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.