AdguardTeam / AdguardTeam/SafariConverterLib

Add support for `$to` and `$from` modifiers

Abierto
#60 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement Priority: P4
Lenguaje dominante
Swift
Estrellas
78
Forks
20
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

`$to` is a modifier that's applied to the request URL's domain name:
https://adguard.com/kb/general/ad-filtering/create-own-filters/#to-modifier

`$from` is just an alias for `$domain`

I am not entirely sure that `$to` can be implemented in Safari content blockers though, `if-domain` may only be applied to the main document domain, needs to be tested.

**UPD:** quick test shows that `if-domain` won't work indeed. Anyways, let's keep this issue open, maybe you can come up with an alternative solution.

**UPD2:** for `$to` I suggest using `if-frame-url`, but we should keep in mind that it cannot be mixed with any `unless-*` property.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.