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

Ruleset generator for NoScript (#489)

This commit is contained in:
nobody
2021-06-07 06:39:55 +02:00
parent afb70e65d0
commit 601a446dbf
4 changed files with 16 additions and 1 deletions

View File

@@ -46,6 +46,8 @@ ruleGenerator.openRuleSet = function ({target}) {
content += `* ${domain} * noop\n`;
} else if (key === 'AdGuard') {
content += `@@||${domain}^\n`;
} else if (key === 'NoScript') {
content += `"$:${domain}",\n`;
}
}
textArea.value = content.replace(/\n+$/, '');