From d6427d823f4760f23ef534be0f2770787344a987 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Wed, 4 Jun 2025 09:42:41 +0200 Subject: [PATCH] Restock detector - Update texts (#3234) --- changedetectionio/content_fetchers/res/stock-not-in-stock.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/changedetectionio/content_fetchers/res/stock-not-in-stock.js b/changedetectionio/content_fetchers/res/stock-not-in-stock.js index 938c9dee..46ef0618 100644 --- a/changedetectionio/content_fetchers/res/stock-not-in-stock.js +++ b/changedetectionio/content_fetchers/res/stock-not-in-stock.js @@ -18,6 +18,7 @@ async () => { 'back-order or out of stock', 'backordered', 'benachrichtigt mich', // notify me + 'binnenkort leverbaar', // coming soon 'brak na stanie', 'brak w magazynie', 'coming soon', @@ -85,6 +86,7 @@ async () => { 'tidak tersedia', 'tijdelijk uitverkocht', 'tiket tidak tersedia', + 'to subscribe to back in stock', 'tükendi', 'unavailable nearby', 'unavailable tickets', @@ -119,8 +121,7 @@ async () => { return text.toLowerCase().trim(); } - const negateOutOfStockRegex = new RegExp('^([0-9] in stock|add to cart|in stock)', 'ig'); - + const negateOutOfStockRegex = new RegExp('^([0-9] in stock|add to cart|in stock|arrives approximately)', 'ig'); // The out-of-stock or in-stock-text is generally always above-the-fold // and often below-the-fold is a list of related products that may or may not contain trigger text // so it's good to filter to just the 'above the fold' elements