AdguardTeam / AdguardTeam/AdguardForiOS
An issue with the scriptlet rule
- Lenguaje dominante
- Swift
- Estrellas
- 1.7k
- Forks
- 240
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Please answer the following questions for yourself before submitting an issue
- [x] Filters were updated before reproducing an issue
- [x] I checked the [knowledge base](https://adguard.com/kb/) and found no answer
- [x] I checked to make sure that this issue has not already been filed
### AdGuard version
4.5.14
### Environment
- OS: 18
- Device: ipad mini
### Ad Blocking
AdGuard Base filter, AdGuard Mobile Ads filter
### Privacy
AdGuard Tracking Protection filter
### Social
AdGuard Social Media filter
### Annoyances
AdGuard Popups filter, AdGuard Mobile App Banners filter, AdGuard Other Annoyances filter, AdGuard Cookie Notices filter, AdGuard Widgets filter
### Security
_No response_
### Other
_No response_
### Language-specific
_No response_
### Advanced protection for Safari
- [x] yes, I do
### Which DNS server do you use?
DNS protection disabled
### DNS protocol
DNS protection disabled
### Custom DNS
_No response_
### DNS filtering
- [ ] yes, I do
### Custom DNS filter
_No response_
### DNS implementation
DNS protection disabled
### Tunnel mode
DNS protection disabled
### Low-level settings
Bootstrap server:
Fallback server:
Blocking mode, etc:
### Issue Details
Subscription popup must be blocked by
```adblock
billboard.com#%#//scriptlet('set-constant', 'window.tp.offer', 'emptyObj')
```
Original report
https://github.com/AdguardTeam/AdguardFilters/issues/217920#issuecomment-3593179325
1. Open https://www.billboard.com/music/music-news/diddy-thanksgiving-meals-prison-inmates-1236124776/
After every check, clear cookies and local storage in dev tools.
### Expected Behavior
No popup.
### Actual Behavior
Popup is loaded because `window.tp.offer` is not redefined.
### Screenshots
Screenshot 1
### Additional Information
With AdGuard mini all good
Details
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Reproduce the issue on the linked Billboard page with the provided scriptlet rule, clearing cookies and local storage between checks. Compare the iOS behavior with AdGuard mini; done means the subscription popup no longer loads and window.tp.offer is redefined as expected.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- ios, swift
- Área
- mobile-dev
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100