PageSourceSearch

https://www.amazonsurf.co.nz/cdn/shop/t/132/assets/recently-viewed…?v=147521306330889881771790041999

js amazonsurf.co.nz collected 2026-09-26 14:53:48 UTC 637 bytes, 2 lines download raw bytes

1export class RecentlyViewed{static#STORAGE_KEY="viewedProducts";static#MAX_PRODUCTS=10;static addProduct(productId){let viewedProducts=this.getProducts();viewedProducts=viewedProducts.filter(id=>id!==productId),viewedProducts.unshift(productId),viewedProducts=viewedProducts.slice(0,this.#MAX_PRODUCTS),localStorage.setItem(this.#STORAGE_KEY,JSON.stringify(viewedProducts))}static clearProducts(){localStorage.removeItem(this.#STORAGE_KEY)}static getProducts(){return JSON.parse(localStorage.getItem(this.#STORAGE_KEY)||"[]")}}
2//# sourceMappingURL=/cdn/shop/t/132/assets/recently-viewed-products.js.map?v=147521306330889881771790041999

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.