1!function(){const e=`${window.location.origin}/wp-admin/admin-ajax.php`;tp=window.tp||[],tp.push(["init",()=>{t()}]);const t=()=>{tp.user.isUserValid()&&tp.pianoId.loadExtendedUser({extendedUserLoaded:function(e){const t=tp.pianoId.getUser()?tp.pianoId.getUser().uid:e.user.uid;if(e?.custom_field_values){const d={code:!1,redeemed:!1};e.custom_field_values.forEach(function(e){console.log("custom fields",e.field_name,e.value),"nyt_gift_code"===e.field_name&&e.value&&(d.code=e.value),"nyt_redeemed_code"===e.field_name&&(d.redeemed="true"===e.value)}),d.code&&(o(d.code),d.redeemed||n(t,d.code))}},formName:"customVariables"})},o=e=>{const t=document.getElementById("menu-user-menu");if(t){const e=document.createElement("li"),o=document.createElement("a");o.href="/my-account/#/to-periexomeno-moy/nyt",o.textContent="The New York Times",e.appendChild(o),t.appendChild(e)}},n=async(t,o)=>{if((e=>{const t=`${encodeURIComponent(e)}=`;for(const e of document.cookie.split("; "))if(e.startsWith(t))return decodeURIComponent(e.slice(t.length));return null})("checked_nyt_redemption"))return;const n=await fetch(`${e}?action=nyt_coupon_status&code=${o}`),d=await n.json();console.log("nyt_coupon_status: ",d),d.success&&"REDEEMED"===d.data.status?fetch(`${e}?action=piano_manage_custom_fields`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({user_id:t,custom_field_id:"nyt_redeemed_code",checked:!0,type:null})}).then(e=>e.json()).then(e=>{console.log("NYT custom field update",e)}).catch(e=>{console.error("NYT custom field update error",e)}):((e,t,o=24)=>{const n=new Date(Date.now()+60*o*60*1e3).toUTCString();document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent(t)}; expires=${n}; path=/; SameSite=Lax`})("checked_nyt_redemption","1",24)}}();
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.