AdguardTeam / AdguardTeam/AdguardForiOS

An issue with the scriptlet rule

未關閉
#2,493 0 則留言 0 個 reaction 已指派 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 摘要。