@f0x how did you learn that skill ? i want to start
@violet and sometimes just a regex is all you need https://git.pixie.town/f0x/woei/src/branch/main/index.js#L43-L55
code, screenreader unfriendly
@violet for the dominos case I started by just writing
pizzas = Array.from(document.querySelectorAll(".product-container")).map((product) => {
return {
name: product.querySelectorAll(".menu-entry")[0].textContent,
img: product.querySelectorAll(".pizza-image")[0].src,
comment: product.querySelectorAll(".menu-page-product-description")[0].textContent
}
})
in the browser console while on the menu page, but going to rewrite it to a standalone script that also fetches the full product page in order to get the lengthier description
@f0x thanks !