fix(browser-extension): issue #643 #686

This commit is contained in:
wanhose 2024-08-04 14:10:37 +02:00
parent 41a64e6fcf
commit ddf3ca4a4e

View File

@ -66,7 +66,10 @@ const options = { childList: true, subtree: true };
/**
* @description Is consent preview page?
*/
const preview = hostname.startsWith('consent.') || hostname.startsWith('myprivacy.');
const preview =
(hostname.startsWith('consent.') &&
!(hostname.startsWith('consent.google') || hostname.startsWith('consent.youtube'))) ||
hostname.startsWith('myprivacy.');
/**
* @description Elements that were already matched and are removable