Skip to content

Add env_ubol directive #1

Closed
Closed
@Yuki2718

Description

@Yuki2718

Prerequisites

I tried to reproduce the issue when...

  • uBO is the only extension
  • uBO with default lists/settings
  • using a new, unmodified browser profile

Description

We will eventually need this directive as uBOL is simply too different. For example, uBlock filters heavily rely on look-ahead regex to catch revolving adservers, which is not possible under MV3. In that case we may need to add a denyallow or scriptlet rule just for uBOL (denyallow is risky so should be avoided if not needed thx to the regex, but in MV3 world there won't be many option). Here an actual case on www.animefenix.org as of now - due to revolving nature of these adservers it will change - with uBO proper there's no problem thx to a rule /^https?:\/\/(?:[a-z]{2}\.)?[0-9a-z]{7,16}\.com\/[a-z](?=[a-z]{0,25}[0-9A-Z])[0-9a-zA-Z]{3,26}\/(?:[1-5]\d{4}|[3-9]\d{3})\??(?:_=\d+|v=\d)?$/$script,3p,match-case but with uBOL any click leads to:

Screenshot

animefenix

Such cases are already common place for Safari content blocker whose regex support is even more ristricted than Chromium MV3 on AG repo. So I also propose to prepare a dedicated list for uBOL, just like the list for legacy or AG's Safari filter. Whether to use the new list or the directive will be determined by case by case basis.

And tho this is off-topic, I propose to set Quick fixes dynamic filter list on uBOL - it's pointless to have this list updated only on extension update.

A specific URL where the issue occurs

https://www.animefenix.org/

Steps to Reproduce

  1. Visit the site with uBO proper and uBOL.
  2. You may see popup only in uBOL. If not, there are plenty of other URLs to test I can post.

Expected behavior

We have a way to specifically address uBOL-specific issues.

Actual behavior

Curretnly not

uBlock Origin version

uBlock Origin Lite 0.1.22.9138

Browser name and version

Brave 1.43.93 with Shield turned off

Operating System and version

Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions