AdguardTeam / AdguardTeam/AdguardForiOS

An issue with the scriptlet rule

Aperta
#2,493 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Bug Investigate Priority: P1
Lingua principale
Swift
Stelle
1.7k
Fork
240
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Image

### Additional Information

With AdGuard mini all good

Details

Image

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
ios, swift
Ambito
mobile-dev
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
42/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.