Improve shipping carriers

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

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

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

@ -228,7 +228,7 @@
], ],
"description": "Caldera Forms is the free WordPress form builder plugin.", "description": "Caldera Forms is the free WordPress form builder plugin.",
"icon": "Caldera Forms.png", "icon": "Caldera Forms.png",
"dom": { "dom": {
"link[href*='/wp-content/plugins/caldera-forms/']": { "link[href*='/wp-content/plugins/caldera-forms/']": {
"attributes": { "attributes": {
"href": "/wp-content/plugins/caldera-forms/.+\\.css(?:\\?ver=(\\d+(?:\\.\\d+)+))?\\;version:\\1" "href": "/wp-content/plugins/caldera-forms/.+\\.css(?:\\?ver=(\\d+(?:\\.\\d+)+))?\\;version:\\1"
@ -439,10 +439,12 @@
"a[href*='/bag']", "a[href*='/bag']",
"a[href*='/shoppingbag']", "a[href*='/shoppingbag']",
"a[href*='/checkout']", "a[href*='/checkout']",
"a[href*='/winkelwagen']",
"[aria-controls='cart']", "[aria-controls='cart']",
"[class*='shopping-bag']", "[class*='shopping-bag']",
"[class*='shopping-cart']", "[class*='shopping-cart']",
"[class*='checkout']" "[class*='checkout']",
"[class*='winkelwagen']"
], ],
"icon": "Cart-generic.svg", "icon": "Cart-generic.svg",
"js": { "js": {
@ -2959,4 +2961,4 @@
"oss": true, "oss": true,
"website": "https://github.com/zloirock/core-js" "website": "https://github.com/zloirock/core-js"
} }
} }

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

@ -514,7 +514,7 @@
"button": { "button": {
"text": "PayPal" "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": "" "exists": ""
} }
}, },
@ -2483,4 +2483,4 @@
}, },
"website": "http://punbb.informer.com" "website": "http://punbb.informer.com"
} }
} }