AdguardTeam / AdguardTeam/AdguardForiOS

An issue with the scriptlet rule

オープン
#2,493 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Bug Investigate Priority: P1
主要言語
Swift
スター
1.7k
フォーク
240
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ios, swift
領域
mobile-dev
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。