1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Implemented: Rules for AdGuard (#105)

This commit is contained in:
nobody
2020-09-13 07:42:28 +02:00
parent 7d0a636afc
commit 908d147246
4 changed files with 16 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ ruleGenerator.openRuleSet = function ({ target }) {
content += '* ' + domain + ' css allow' + '\n';
} else if (key === 'uBlock') {
content += '* ' + domain + ' * noop' + '\n';
} else if (key === 'AdGuard') {
content += '@@||' + domain + '^\n';
}
}
textArea.value = content.replace(/\n+$/, '');