Improve shipping carriers

main
Elbert Alias 3 years ago
parent 8522c74b8d
commit 30165baac8

@ -704,9 +704,10 @@ class Site {
text = await this.promiseTimeout(
(
await this.promiseTimeout(
page.evaluateHandle(() =>
page.evaluateHandle(
() =>
// eslint-disable-next-line unicorn/prefer-text-content
document.body.innerText.replace(/\s+/g, ' ').slice(0, 25000)
document.body.innerText // .replace(/\s+/g, ' ').slice(0, 25000)
),
{ jsonValue: () => '' },
'Timeout (text)'

@ -815,7 +815,7 @@
"icon": "Bol.com.svg",
"requiresCategory": 6,
"text": [
"\\bBOL\\b",
"\\b(?<!-)BOL\\b",
"\\bbol\\.com\\b"
],
"website": "https://www.bol.com"

@ -439,10 +439,12 @@
"a[href*='/bag']",
"a[href*='/shoppingbag']",
"a[href*='/checkout']",
"a[href*='/winkelwagen']",
"[aria-controls='cart']",
"[class*='shopping-bag']",
"[class*='shopping-cart']",
"[class*='checkout']"
"[class*='checkout']",
"[class*='winkelwagen']"
],
"icon": "Cart-generic.svg",
"js": {

@ -38,6 +38,13 @@
"icon": "DHL.svg",
"requiresCategory": 6,
"text": "\\bDHL\\b",
"dom": {
"img[alt*='dhl' i]": {
"attributes": {
"alt": "\\bDHL\\b"
}
}
},
"website": "https://www.dhl.com"
},
"DHTMLX": {

@ -514,7 +514,7 @@
"button": {
"text": "PayPal"
},
"iframe[src*='paypal.com'], img[src*='paypal.com'], img[src*='paypalobjects.com'], [aria-labelledby='pi-paypal'], [data-paypal-v4='true']": {
"iframe[src*='paypal.com'], img[src*='paypal.com'], img[src*='paypalobjects.com'], [aria-labelledby='pi-paypal'], [data-paypal-v4='true'], img[alt*='PayPal' i]": {
"exists": ""
}
},

Loading…
Cancel
Save