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:
@@ -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+$/, '');
|
||||
|
Reference in New Issue
Block a user