From 6393afb5768bab14167ce5064e16b3d090c741ef Mon Sep 17 00:00:00 2001 From: Horus Date: Fri, 15 Jan 2021 11:14:33 +0100 Subject: Better regexp to match amazon host. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 469a877..1ca22fc 100644 --- a/index.php +++ b/index.php @@ -104,7 +104,7 @@ } let url = new URL( _url ); - if ( url.host === "www.amazon.de" || url.host === "smile.amazon.de" ) { + if ( url.host.match("(www|smile)\.amazon\.([a-zA-Z]+)") ) { if ( url.href.includes('/ref=') ) { url.href = url.href.toString().replace(/ref=(.+)/, '') } else { -- cgit v1.2.3