You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's related to this issue - AdguardTeam/AdguardFilters#163515 - the problem is that sponsored posts are not blocked on facebook.com, it happens with Safari extension and app for iOS.
It looks like that script execution is blocked by CSP:
Refused to execute a script because its hash, its nonce, or 'unsafe-inline' does not appear in the script-src directive of the Content Security Policy.
Squashed commit of the following:
commit 55a3e6a
Author: Maxim Topciu <mtopciu@adguard.com>
Date: Tue Oct 24 18:33:43 2023 +0300
AG-26912 add logging
commit 3dfce09
Author: Maxim Topciu <mtopciu@adguard.com>
Date: Tue Oct 24 17:34:57 2023 +0300
AG-26912 try to inject a script also as a blob
It's related to this issue - AdguardTeam/AdguardFilters#163515 - the problem is that sponsored posts are not blocked on
facebook.com
, it happens with Safari extension and app for iOS.It looks like that script execution is blocked by CSP:
I'm aware that's duplicate of #304, there is also similar issue in browser extension repository - AdguardTeam/AdguardBrowserExtension#1733 with a link to possibly fix - AdguardTeam/AdguardBrowserExtension#1733 (comment)
As far as I understand, this is used to execute advanced rules/scripts:
AdGuardForSafari/AdGuard/Extension/advanced-script.js
Lines 14 to 28 in 39ec626
unfortunately it looks like that this approach is blocked by website's Content Security Policy.
So maybe something like this:
could be used as a workaround, it seems that it works, at least in browser's console while debugging.
The text was updated successfully, but these errors were encountered: