AdguardTeam / AdguardTeam/FiltersCompiler

Transform rules for Samsung Browser compatibility

未關閉
#2 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Priority: P3
主要語言
JavaScript
星號
64
分支
11
PR 合併指標
30 天內沒有已合併 PR

描述

@ameshkov commented on [Mon Aug 21 2017](https://github.com/AdguardTeam/AdguardFilters/issues/6385)

The problem is that Samsung cannot handle `^` symbol when it means the end of URL:

For instance:
`||google-analytics.com/analytics.js^` won't match `https://google-analytics.com/analytics.js`

To fix this issue we should add a duplicate rule with `|` instead of `^` for every rule matching this regexp:
`^(@@)?\|\|.+?/.+?\^(\$.*)?$`

For instance, this rule:
```
`||google-analytics.com/analytics.js^$third-party`
```

Should be replaced with two:
```
`||google-analytics.com/analytics.js^$third-party`
`||google-analytics.com/analytics.js|$third-party`
```

**It should be done for Content Blocker filters only**

---

@Mizzick commented on [Wed Oct 18 2017](https://github.com/AdguardTeam/AdguardFilters/issues/6385#issuecomment-337695856)

>It should be done for Content Blocker filters only

But what is Content FIlter? How to define it?

---

@ameshkov commented on [Sun Oct 22 2017](https://github.com/AdguardTeam/AdguardFilters/issues/6385#issuecomment-338481779)

> But what is Content FIlter? How to define it?

I mean rules for iOS, Safari, and for Android Content Blocker

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。