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(() =>
// eslint-disable-next-line unicorn/prefer-text-content
document.body.innerText.replace(/\s+/g, ' ').slice(0, 25000)
page.evaluateHandle(
() =>
// eslint-disable-next-line unicorn/prefer-text-content
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"
@ -1769,4 +1769,4 @@
},
"website": "https://addyosmani.github.io/basket.js/"
}
}
}

@ -228,7 +228,7 @@
],
"description": "Caldera Forms is the free WordPress form builder plugin.",
"icon": "Caldera Forms.png",
"dom": {
"dom": {
"link[href*='/wp-content/plugins/caldera-forms/']": {
"attributes": {
"href": "/wp-content/plugins/caldera-forms/.+\\.css(?:\\?ver=(\\d+(?:\\.\\d+)+))?\\;version:\\1"
@ -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": {
@ -2959,4 +2961,4 @@
"oss": true,
"website": "https://github.com/zloirock/core-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": {
@ -1287,4 +1294,4 @@
"scriptSrc": "deepMiner\\.js",
"website": "https://github.com/deepwn/deepMiner"
}
}
}

@ -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": ""
}
},
@ -2483,4 +2483,4 @@
},
"website": "http://punbb.informer.com"
}
}
}