PageSourceSearch

https://www.thedirtyjohnsons.com/assets/currency-formatter-e6d2ec3…b852eccecac4da727de1c7e1ecbf0a335278e93a.js

js thedirtyjohnsons.com collected 2026-09-24 23:15:53 UTC 999 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){function e(e){const n=e.dataset.currencyAmount;let r;r=c!=e.dataset.currencyCode?new Intl.NumberFormat(o,{style:"currency",currency:e.dataset.currencyCode}).format(n):u.format(n),e.innerHTML=r}let n,r,c="USD",t=null;null!=(n=window.bigcartel)&&null!=(r=n.account)&&(c=r.currency,t=r.moneyFormat);const o=navigator.language||"en-US";let a={style:"currency",currency:c};"sign"===t?a.currencyDisplay="symbol":"code"===t?a.currencyDisplay="code":"sign_rounded"===t?(a.currencyDisplay="symbol",a.minimumFractionDigits=0):"code_rounded"===t&&(a.currencyDisplay="code",a.minimumFractionDigits=0);const u=new Intl.NumberFormat(o,a);document.querySelectorAll("[data-currency-amount]").forEach(e),new MutationObserver(n=>{n.forEach(n=>{n.addedNodes.forEach(n=>{n.nodeType===Node.ELEMENT_NODE&&(n.hasAttribute("data-currency-amount")&&e(n),n.querySelectorAll("[data-currency-amount]").forEach(e))})})}).observe(document.body,{childList:!0,subtree:!0})});

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.