mirror of https://github.com/gorhill/uBlock.git
[mv3] Add ability to manually add filters to a ruleset
This commit is contained in:
parent
c4d2dcd835
commit
fcc77e7c92
|
@ -996,6 +996,10 @@ async function rulesetFromURLs(assetDetails) {
|
||||||
assetDetails.text = text;
|
assetDetails.text = text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( Array.isArray(assetDetails.filters) ) {
|
||||||
|
assetDetails.text += '\n' + assetDetails.filters.join('\n');
|
||||||
|
}
|
||||||
|
|
||||||
const extensionPaths = [];
|
const extensionPaths = [];
|
||||||
for ( const [ fname, details ] of redirectResourcesMap ) {
|
for ( const [ fname, details ] of redirectResourcesMap ) {
|
||||||
const path = `/web_accessible_resources/${fname}`;
|
const path = `/web_accessible_resources/${fname}`;
|
||||||
|
@ -1169,6 +1173,8 @@ async function main() {
|
||||||
urls: contentURLs,
|
urls: contentURLs,
|
||||||
dnrURL: 'https://ublockorigin.github.io/uAssets/dnr/default.json',
|
dnrURL: 'https://ublockorigin.github.io/uAssets/dnr/default.json',
|
||||||
homeURL: 'https://github.com/uBlockOrigin/uAssets',
|
homeURL: 'https://github.com/uBlockOrigin/uAssets',
|
||||||
|
filters: [
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
// Regional rulesets
|
// Regional rulesets
|
||||||
|
|
Loading…
Reference in New Issue