From 8d9d377bc454c715e8b0aa744a775179a99c3f68 Mon Sep 17 00:00:00 2001 From: Onind Date: Wed, 5 May 2021 20:10:22 +0200 Subject: [PATCH] fix: xbox X false alerts on amazon us,ca,de --- src/store/model/amazon-ca.ts | 12 ++++++++++++ src/store/model/amazon-de.ts | 22 ++++++++++++++++------ src/store/model/amazon.ts | 12 ++++++++++++ 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/src/store/model/amazon-ca.ts b/src/store/model/amazon-ca.ts index 758251d29d..59830ddcf2 100644 --- a/src/store/model/amazon-ca.ts +++ b/src/store/model/amazon-ca.ts @@ -264,6 +264,12 @@ export const AmazonCa: Store = { brand: 'microsoft', cartUrl: 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08H75RTZ8&Quantity.1=1', + labels: { + inStock: { + container: '#productTitle', + text: ['Xbox Series X'], + }, + }, model: 'xbox series x', series: 'xboxsx', url: 'https://www.amazon.ca/dp/B08H75RTZ8', @@ -272,6 +278,12 @@ export const AmazonCa: Store = { brand: 'microsoft', cartUrl: 'https://www.amazon.ca/gp/aws/cart/add.html?ASIN.1=B08G9J44ZN&Quantity.1=1', + labels: { + inStock: { + container: '#productTitle', + text: ['Xbox Series S'], + }, + }, model: 'xbox series s', series: 'xboxss', url: 'https://www.amazon.ca/dp/B08G9J44ZN', diff --git a/src/store/model/amazon-de.ts b/src/store/model/amazon-de.ts index 1ff324b9eb..267c6a469b 100644 --- a/src/store/model/amazon-de.ts +++ b/src/store/model/amazon-de.ts @@ -537,18 +537,28 @@ export const AmazonDe: Store = { }, { brand: 'microsoft', - // Fixme: disabled because of #1095, enable when working again - // cartUrl: - // 'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08H93ZRLL&Quantity.1=1', + cartUrl: + 'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B08H93ZRLL&Quantity.1=1', + labels: { + inStock: { + container: '#productTitle', + text: ['Xbox Series X'], + }, + }, model: 'xbox series x', series: 'xboxsx', url: 'https://www.amazon.de/dp/B08H93ZRLL', }, { brand: 'microsoft', - // Fixme: disabled because of #1095, enable when working again - // cartUrl: - // 'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B087VM5XC6&Quantity.1=1', + cartUrl: + 'https://www.amazon.de/gp/aws/cart/add.html?ASIN.1=B087VM5XC6&Quantity.1=1', + labels: { + inStock: { + container: '#productTitle', + text: ['Xbox Series S'], + }, + }, model: 'xbox series s', series: 'xboxss', url: 'https://www.amazon.de/dp/B087VM5XC6', diff --git a/src/store/model/amazon.ts b/src/store/model/amazon.ts index e165ab02a0..37a4b3f107 100644 --- a/src/store/model/amazon.ts +++ b/src/store/model/amazon.ts @@ -741,12 +741,24 @@ export const Amazon: Store = { }, { brand: 'microsoft', + labels: { + inStock: { + container: '#productTitle', + text: ['Xbox Series X'], + }, + }, model: 'xbox series x', series: 'xboxsx', url: 'https://www.amazon.com/dp/B08H75RTZ8', }, { brand: 'microsoft', + labels: { + inStock: { + container: '#productTitle', + text: ['Xbox Series S'], + }, + }, model: 'xbox series s', series: 'xboxss', url: 'https://www.amazon.com/dp/B08G9J44ZN',