PageSourceSearch

https://www.juliska.com/cdn/shop/t/722/assets/swym-wishlist-event.js?v=98925260288377045511789995314

js juliska.com collected 2026-09-25 19:12:04 UTC 2,262 bytes, 2 lines download raw bytes

1(function(){const updateLabel=target=>{const productTitle=target.getAttribute("data-product-title");if(productTitle){const currentLabel=target.getAttribute("aria-label");if(currentLabel&&!currentLabel.includes(productTitle)){let newLabel=currentLabel;currentLabel.toLowerCase().includes("add")?newLabel=`Add ${productTitle} to Wishlist`:currentLabel.toLowerCase().includes("remove")||currentLabel.toLowerCase().includes("added")||currentLabel.toLowerCase().includes("in")?newLabel=`Remove ${productTitle} from Wishlist`:newLabel=`${currentLabel} - ${productTitle}`,target.setAttribute("aria-label",newLabel)}}},initializeLabels=()=>{document.querySelectorAll('.swym-button, [data-swaction="addToWishlist"]').forEach(updateLabel)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",initializeLabels):initializeLabels(),window.addEventListener("load",initializeLabels);const observer=new MutationObserver(mutations=>{mutations.forEach(mutation=>{if(mutation.type==="attributes"&&mutation.attributeName==="aria-label"){const target=mutation.target;(target.classList.contains("swym-button")||target.getAttribute("data-swaction")==="addToWishlist")&&(observer.disconnect(),updateLabel(target),observer.observe(document.body,{attributes:!0,subtree:!0,attributeFilter:["aria-label"]}))}})});document.body?observer.observe(document.body,{attributes:!0,subtree:!0,attributeFilter:["aria-label"]}):document.addEventListener("DOMContentLoaded",()=>{observer.observe(document.body,{attributes:!0,subtree:!0,attributeFilter:["aria-label"]})})})(),window.addEventListener("load",function(){function onSwymLoadCallback(swat){let event="sw:addedtowishlist",addedToWishlist=async function(e){var data=e.detail.d;const trackingItemData={item_name:data.dt,item_id:data.sku,quantity:1,price:data.pr,currency:"USD",affiliation:data.bt};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"add_to_wishlist",ecommerce:{currency:"USD",value:data.pr,items:[{...trackingItemData}]}})};window._swat.evtLayer.addEventListener(event,addedToWishlist)}window.SwymCallbacks||(window.SwymCallbacks=[]),window.SwymCallbacks.push(onSwymLoadCallback)});
2//# sourceMappingURL=/cdn/shop/t/722/assets/swym-wishlist-event.js.map?v=98925260288377045511789995314

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.