Closed m3nadav closed 2 weeks ago
There is only one enabled ruleset by default, the default
one.
Also, the source code in uBOL is generated from a build script at https://github.com/gorhill/uBlock/tree/master/platform/mv3, so any change in the code needs to be done there. But as said there is only one ruleset enabled by default -- I don't plan to change this.
Is there another way to control what lists are enabled that is not through the extension UI?
I just noticed I haven't given any context - I'd like to manually install the extension on multiple browsers and enable specific lists as part of the installation
The PR I opened just to manually control the enabled lists using the manifest.json file, but doesn't change the current defaults
@gorhill I'd appreciate your comment on this I can't open a PR to the main repository as it is limited for users that have contributed to that repository in the past The change I propose does not change the default filter lists, it just uses the already declared defaults as input during the installation process, as can be seen here:
Appreciate your work, and hope to be able to contribute to it
I'm using uBOL in an automated / headless scenario, where users never get to interact with the browser UI and thus can not modify the rulesets. I'd also like to be able to configure the default rulesets through manifest.json
, or some other mechanism if patching manifest.json
is not appropriate.
@sissbruecker sadly the fix PR was declined a few days ago without any comment or reference so I'm not sure why
During the installation of the extension, the
defaultRulesetsFromLanguage
function uses a hard-codedout
containing the default ruleset only (on ruleset-manager.js:437) so any enabled ruleset from the manifest.json that is not "default" and the language default is being disabled during installationTo fix this, that line should be
I will open a PR on this repo hoping that's the way to contribute to this version of uBO 🙏