[mv3] Add ability to manually add filters to a ruleset

This commit is contained in:
Raymond Hill 2024-02-25 20:39:21 -05:00
parent c4d2dcd835
commit fcc77e7c92
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 6 additions and 0 deletions

View File

@ -996,6 +996,10 @@ async function rulesetFromURLs(assetDetails) {
assetDetails.text = text;
}
if ( Array.isArray(assetDetails.filters) ) {
assetDetails.text += '\n' + assetDetails.filters.join('\n');
}
const extensionPaths = [];
for ( const [ fname, details ] of redirectResourcesMap ) {
const path = `/web_accessible_resources/${fname}`;
@ -1169,6 +1173,8 @@ async function main() {
urls: contentURLs,
dnrURL: 'https://ublockorigin.github.io/uAssets/dnr/default.json',
homeURL: 'https://github.com/uBlockOrigin/uAssets',
filters: [
],
});
// Regional rulesets