summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
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 {