Open gortron opened 3 months ago
hi @gortron - thank you for reporting. Have looked into this issue and it looks like the block filter for youtube main page should be slightly different. Does this one works for you ||youtube.com/^$document
?
Thanks @chrmod!
Doing so updates the DNR output to be:
{
"id": 2,
"priority": 101,
"action": {
"type": "block"
},
"condition": {
"resourceTvpes": [
"main frame"
],
"urlFilter": "||youtube.com/^"
}
}
{
"id": 2,
"priority": 100001,
"action": {
"type": "allow"
},
"condition": {
"urlFilter": "||youtube.com/watch"
}
}
And the Actual behavior: youtube.com/
home page AND youtube.com/watch?v=...
videos are NOT blocked.
Generally, it seems like Exclusion tags are not working as expected.
@GRadziejewski can you test this please? It works fine on my end.
@gortron when testing do you force-refresh the page? Youtube is using service workers for caching, so the page may load from cache and network filter wont be able to stop that.
@chrmod On my machines it looks like this:
||youtube.com^$document
@@||youtube.com/watch
macOS:
https://github.com/user-attachments/assets/a1fce53e-5d6a-413a-9dcd-d1416e7e8ab8
iOS (I had to wait a bit for it to work, but at the end check the results):
https://github.com/user-attachments/assets/470473bc-a9f4-4558-a3fc-e9fd48afaf49
I noticed an issue with the
Experimental Ad-Blocking Filters > Customer filters
setting.Environment:
Repro steps:
||youtube.com^$document
as a custom filter@@||youtube.com/watch
as a custom filterExpected behavior:
youtube.com/
home page is blocked, BUTyoutube.com/watch?v=...
videos are NOT blocked.Actual behavior:
youtube.com/
home page is blocked, ANDyoutube.com/watch?v=...
videos ARE blocked.Let me know if there are any other details I can provide for this issue.