PageSourceSearch

https://food.blog/wp-content/mu-plugins/jetpack-plugin/moon/jetpac…/action-bar.js?ver=33ad88c8b02f7d5bc6d2

js food.blog collected 2026-10-01 06:38:14 UTC 9,613 bytes, 1 lines download raw bytes

1(()=>{"use strict";!function(){if(window.wpcom&&window.wpcom.actionbar&&window.wpcom.actionbar.initialized)return;const e=window.wpcom=window.wpcom||{};e.actionbar={initialized:!0},e.actionbar.data=window.actionbardata;const t=e.actionbar.data;function n(e={},o=()=>{}){e.action&&fetch(t.xhrURL,{method:"POST",body:new URLSearchParams({_wpnonce:t.nonce,...e}),headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","X-Requested-With":"XMLHttpRequest"}}).then(o)}let o;function c(e,n,i={}){const r={path:e,body:i,method:"POST",apiNamespace:n};(o||(o=new Promise((e,n)=>{if(window.WPCOM_Proxy_Request)e(window.WPCOM_Proxy_Request);else{const o=document.createElement("script");o.src=t.proxyScriptUrl,o.async=!0,document.body.appendChild(o),o.addEventListener("load",()=>e(window.WPCOM_Proxy_Request)),o.addEventListener("error",e=>n(e))}})),o).then(e=>e(r))}function i(e,t){n({action:"actionbar_stats",stat:e},t)}function r(e){n({action:e,source:"actionbar",blog_id:t.siteID})}let a=window.scrollY||window.pageYOffset||0;if(window!==window.top)return;const s=document.querySelector("#actionbar");if(!s)return;s.removeAttribute("style");const l=s.querySelector(".actnbr-live");s.addEventListener("keydown",e=>{(" "===e.key&&e.target.matches('a[role="button"], a[role="radio"]')||"Enter"===e.key&&e.target.matches('a[role="radio"]'))&&(e.preventDefault(),e.target.click())}),s.addEventListener("focusin",()=>{s.classList.remove("actnbr-hidden")});const d=s.querySelector(".actnbr-actn-follow"),u=d?d.closest(".actnbr-btn"):null,b=s.querySelector("#follow-bubble"),p=s.querySelector(".actnbr-actn-reblog");function f(){u&&(R(!1),u.classList.remove("actnbr-hidden"),d.setAttribute("aria-expanded","true"))}function w(e){u&&(u.classList.add("actnbr-hidden"),d.setAttribute("aria-expanded","false"),e&&d.focus())}b&&b.addEventListener("keydown",e=>{"Escape"===e.key&&(e.preventDefault(),w(!0))});const m=s.querySelector(".actnbr-actn-comment"),_=document.querySelector("#commentform"),y=s.querySelector(".actnbr-actn-privacy"),g=s.querySelector("#toggle-input-notify-posts"),v=s.querySelector("#toggle-input-email-posts"),k=s.querySelector("#toggle-input-email-comments"),h=s.querySelectorAll(".segmented-control__link");function L(e){h.forEach(e=>e.setAttribute("aria-checked","false")),e.setAttribute("aria-checked","true")}p&&p.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();(new Image).src=`${document.location.protocol}//pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblog_source=actionbar&baba=${Math.random()}`,T("wpcom_actionbar_post_reblogged",{url:t.siteURL,blog_id:t.siteID,post_id:t.postID});const n=t.siteID+"-"+t.postID,o=window.wpcom_reblog;o&&"function"==typeof o.toggle_reblog_box_flair&&o.toggle_reblog_box_flair(n,t.postID)}),m&&(_||m.parentNode.classList.add("no-display"),m.addEventListener("click",()=>{i("comment_clicked"),T("wpcom_actionbar_comment_click",{url:t.siteURL,blog_id:t.siteID,post_id:t.postID})})),g&&g.addEventListener("click",e=>{const n=e.target.checked;c(`/read/sites/${t.siteID}/notification-subscriptions/${n?"new":"delete"}`,"wpcom/v2"),T("wpcom_actionbar_site_notifications",{enabling:n,follow_source:"actionbar",url:t.siteURL})}),v&&v.addEventListener("click",e=>{const n=e.target.checked,o=`/read/site/${t.siteID}/post_email_subscriptions/${n?"new":"delete"}`,i={};if(n){i.delivery_frequency=t.subsEmailDefault;const e=s.querySelector(`.frequency-${t.subsEmailDefault}`);e&&L(e)}s.querySelector("#email-new-posts-details").classList.toggle("is-visible",n),c(o,"rest/v1.2",i)}),k&&k.addEventListener("click",e=>{const n=e.target.checked;c(`/read/site/${t.siteID}/comment_email_subscriptions/${n?"new":"delete"}`,"rest/v1.2")}),y&&(window.__tcfapi&&y.parentNode.classList.remove("no-display"),y.addEventListener("click",e=>{e.preventDefault(),i("privacy_clicked"),T("wpcom_actionbar_privacy_click",{url:t.siteURL,blog_id:t.siteID,post_id:t.postID})})),h.forEach((e,n)=>{e.addEventListener("click",()=>{L(e);c(`/read/site/${t.siteID}/post_email_subscriptions/update`,"rest/v1.2",{delivery_frequency:e.dataset.frequency})}),e.addEventListener("keydown",e=>{const t={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[e.key];if(t){e.preventDefault();const o=h[(n+t+h.length)%h.length];o.focus(),o.click()}})}),d&&d.addEventListener("click",e=>{if(e.preventDefault(),f(),t.isLoggedIn){F(t.i18n.followedText),i("followed"),T("wpcom_actionbar_site_followed",{follow_source:"actionbar",url:t.siteURL}),r("ab_subscribe_to_blog");"never"!==t.subsEmailDefault&&v.click(),g.click(),0===e.detail&&g.focu
1s()}else s.querySelector(".actnbr-follow-bubble form").classList.remove("no-display"),s.querySelector(".actnbr-email-field").focus()});const q=s.querySelector(".actnbr-actn-following");q&&q.addEventListener("click",e=>{e.preventDefault(),q.classList.add("no-display"),d.classList.remove("no-display"),i("unfollowed"),T("wpcom_actionbar_site_unfollowed",{follow_source:"actionbar",url:t.siteURL}),r("ab_unsubscribe_from_blog"),w(!1),s.querySelectorAll(".actnbr-site-settings__toggle__input").forEach(e=>{e.checked=!1})});const S=s.querySelector("a.actnbr-shortlink"),E=S&&S.querySelector(".actnbr-shortlink__text");function D(e){var n;E.textContent=t.i18n.shortLinkCopied,n=t.i18n.shortLinkCopied,l&&(l.textContent="",l.textContent=n),S.classList.add("actnbr-shortlink__copied"),setTimeout(()=>{E.textContent=e,S.classList.remove("actnbr-shortlink__copied")},6e3)}S&&S.addEventListener("click",e=>{e.preventDefault(),function(){const e=E.textContent;if(e!==t.i18n.shortLinkCopied){if(navigator.clipboard)navigator.clipboard.writeText(t.shortlink).then(()=>D(e)).catch(()=>{window.prompt("Shortlink: ",t.shortlink)});else{const n=document.createElement("textarea");n.value=t.shortlink,S.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),D(e)}catch{window.prompt("Shortlink: ",t.shortlink)}S.removeChild(n)}i("copied_shortlink")}}()});const x=s.querySelector(".actnbr-ellipsis"),A=x.querySelector(".actnbr-more-toggle"),C=x.querySelector(".actnbr-menu");function I(){return Array.from(C.querySelectorAll('[role="menuitem"]')).filter(e=>null!==e.offsetParent)}function P(e){if(w(!1),x.classList.remove("actnbr-hidden"),A.setAttribute("aria-expanded","true"),i("show_more_menu"),e){const e=I();e.length&&e[0].focus()}}function R(e){x.classList.add("actnbr-hidden"),A.setAttribute("aria-expanded","false"),e&&A.focus()}A.addEventListener("click",e=>{x.classList.contains("actnbr-hidden")?P(0===e.detail):R(!1)}),A.addEventListener("keydown",e=>{"ArrowDown"!==e.key&&"ArrowUp"!==e.key||(e.preventDefault(),P(!0))}),C.addEventListener("keydown",e=>{const t=I(),n=t.indexOf(C.ownerDocument.activeElement);switch(e.key){case"ArrowDown":e.preventDefault(),t[(n+1)%t.length].focus();break;case"ArrowUp":e.preventDefault(),t[(n-1+t.length)%t.length].focus();break;case"Home":e.preventDefault(),t[0].focus();break;case"End":e.preventDefault(),t[t.length-1].focus();break;case"Escape":e.preventDefault(),R(!0);break;case"Tab":R(!1)}}),document.addEventListener("click",e=>{x.contains(e.target)||u&&u.contains(e.target)||(R(!1),w(!1))});const U=s.querySelector(".actnbr-fold");if(U){if(!s.querySelector("li.actnbr-btn:not(.no-display)")){U.classList.add("no-display");const e=U.closest(".actnbr-menu__group");e&&e.classList.add("no-display")}U.addEventListener("click",e=>{e.preventDefault();const o=U.querySelector(".actnbr-menu__label");s.classList.contains("actnbr-folded")?(o.textContent=t.i18n.foldBar,s.classList.remove("actnbr-folded"),n({action:"unfold_actionbar"})):(o.textContent=t.i18n.unfoldBar,s.classList.add("actnbr-folded"),n({action:"fold_actionbar"})),R(!0)})}function O(e,t,n){s.querySelectorAll(e).forEach(e=>{e.addEventListener("click",M(t,n))})}O("a.actnbr-sitename","clicked_site_title"),O("a.actnbr-theme","explored_theme"),O(".actnbr-edit a","edited"),O(".actnbr-stats a","clicked_stats"),O("a.flb-report","reported_content"),O("a.actnbr-follows","managed_following"),O(".actnbr-login-nudge a","clicked_login_nudge"),O("a.actnbr-signup","clicked_signup_link"),O("a.actnbr-login","clicked_login_link"),O("a.actnbr-subs","clicked_manage_subs_link"),O("a.actnbr-reader","view_reader");const $=s.querySelector(".actnbr-follow-bubble form");function T(e,t){t=t||{},window._tkq=window._tkq||[],window._tkq.push(["recordEvent",e,t])}function M(e,t){const n={};return function(o){if(n[o.timeStamp])return delete n[o.timeStamp],"submit"===o.type&&o.target.submit(),"function"!=typeof t||t(o);o.preventDefault(),o.stopPropagation(),i(e,function(){const e=new(0,o.constructor)(o.type,o);n[e.timeStamp]=!0,o.target.dispatchEvent(e)})}}function F(e){const t=s.querySelector(".actnbr-actn-follow"),n=s.querySelector(".actnbr-actn-following");t&&t.classList.add("no-display"),n&&n.classList.remove("no-display");const o=s.querySelector(".actnbr-follow-bubble .actnbr-message");o&&(o.classList.remove("no-display"),o.innerHTML=e),f()}function W(){Object.prototype.hasOwnProperty.call(t,"isFollowing")&&d&&q&&(d.classList.toggle("no-display",!!t.isFollowing),q.classList.toggle("no-display",!t.is
1Following))}$&&$.addEventListener("submit",M("submit_follow_form",()=>{const e=$.querySelector("button");e&&e.setAttribute("disabled",!0)})),document.addEventListener("scroll",function(){const e=window.scrollY||window.pageYOffset||0,t=s.classList.contains("actnbr-hidden");e<a?s.classList.remove("actnbr-hidden"):t||!x.classList.contains("actnbr-hidden")||u&&!u.classList.contains("actnbr-hidden")||s.classList.add("actnbr-hidden"),a=e},{passive:!0}),W(),window.addEventListener("actionbardata-updated",W),t.statusMessage&&F(t.statusMessage)}()})();

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.