AdguardTeam / AdguardTeam/AdguardForiOS

An issue with the scriptlet rule

Ouverte
#2,493 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Bug Investigate Priority: P1
Langage dominant
Swift
Étoiles
1.7k
Forks
240
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
ios, swift
Domaine
mobile-dev
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.