mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 01:30:37 +08:00
Add $document to adblock filter parsing
This commit is contained in:
parent
9774611ea9
commit
12bb3bf83a
@ -194,12 +194,16 @@ async function processFilterRules (filterRulesUrl, fallbackUrls) {
|
||||
lineEndsWithCaret
|
||||
|| lineEndsWithCaretVerticalBar
|
||||
|| line.endsWith('^$all')
|
||||
|| line.endsWith('^$doc')
|
||||
|| line.endsWith('^$document')
|
||||
)
|
||||
) {
|
||||
const _domain = line
|
||||
.replaceAll('||', '')
|
||||
.replaceAll('^|', '')
|
||||
.replaceAll('^$all', '')
|
||||
.replaceAll('^$document', '')
|
||||
.replaceAll('^$doc', '')
|
||||
.replaceAll('^', '')
|
||||
.trim();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user