fix(popup): use hostname-aware domain matching to prevent false positives

The noise filter used naive String.includes() on the full URL, causing
blacklist entry 'x.com' to match netflix.com (since 'netflix.com'
contains 'x.com' as substring). This made Netflix tabs disappear when
the filter was enabled.

Fixed by extracting the URL hostname and matching at domain boundaries:
- Domain entries (x.com): hostname === domain || endsWith('.' + domain)
- Prefix entries (amazon.): startsWith || includes('.' + domain)
- Keyword entries (jira): substring fallback on full URL

Release v1.7.5
This commit is contained in:
Koala
2026-05-25 13:26:01 +02:00
parent 2fbeafeb3f
commit 82c09a5328
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "koalasync",
"version": "1.7.4",
"version": "1.7.5",
"description": "KoalaSync Build Scripts",
"private": true,
"scripts": {