uBlockOrigin / uBlock-issues

This is the community-maintained issue tracker for uBlock Origin
https://github.com/gorhill/uBlock
945 stars 81 forks source link

[FEATURE REQUEST] uMatrix like interface #2226

Closed puchu closed 2 years ago

puchu commented 2 years ago

Prerequisites

I tried to reproduce the issue when...

Description

the current interface in advanced mode mixes different requests like pictures, scripts, xhr,... together. Would be nice to get an enhanced mode where it's possible to block/allow requests in an interface that mimics the uMatrix interface and allows for ex. to allow only pictures but no scripts from a specific domain

A specific URL where the issue occurs

everywhere

Steps to Reproduce

.

Expected behavior

an uMatrix like interface in advanced mode

Actual behavior

a mode generalized interface

Configuration

```yaml uBlock Origin: 1.44.0 Firefox: 103 filterset (summary): network: 80252 cosmetic: 45369 scriptlet: 17646 html: 725 listset (total-discarded, last updated): default: user-filters: 28-0, never ublock-filters: 33209-72, 4d.6h.44m ublock-badware: 4237-0, 4d.6h.44m ublock-privacy: 247-0, 4d.6h.44m ublock-abuse: 76-0, 4d.6h.44m ublock-unbreak: 1871-0, 4d.6h.44m easylist: 69526-595, 4d.6h.44m easyprivacy: 27354-581, 4d.6h.44m plowe-0: 3635-3, 4d.6h.44m urlhaus-1: 4828-0, 4d.6h.44m ublock-quick-fixes: 401-0, 4d.6h.44m filterset (user): [array of 28 redacted] trustedset: added: [array of 1 redacted] removed: edge-scheme hostRuleset: added: [array of 22 redacted] modifiedUserSettings: autoUpdate: false modifiedHiddenSettings: [none] supportStats: allReadyAfter: 1584 ms (selfie) maxAssetCacheWait: 129 ms ```
gothic-bum commented 2 years ago

Duplicate of: https://github.com/uBlockOrigin/uBlock-issues/issues/1324

puchu commented 2 years ago

maybe he changed his mind? The current interface is too generic and compared to the uMatrix interface it's a step backwards.

i would also be fine to do a PR but i would need some help to implement it. I'm more into C/C++

gothic-bum commented 2 years ago

maybe he changed his mind?

Perhaps, but note that he is well aware of the request and has declined it multiple times. I highly doubt that creating a duplicate for the same issue is going to change his mind.

i would also be fine to do a PR but i would need some help to implement it. I'm more into C/C++

I'm sure this would be welcomed by many users, some of whom would likely be willing to provide help. As a suggestion, you may want to post this on /r/uBlockOrigin.

puchu commented 2 years ago

the actual problem with the current solution is, that let's say site A needs pictures from site B to work. That's fine, but the current uBlock interface only allows to whitelist a complete domain/sub-domain for everything aka scripts, frames, pictures, xhr, .... and that's very messy, because i only need the pictures of site B to make site A work. If site B gets compromised the current implementation would also load the maybe malicious scripts from site B or load compromised frames.

The dev of uBlock actually showed me how to handle this problem correctly aka uMatrix and i can't forget about his perfect solution for this complicated problem :)

gothic-bum commented 2 years ago

the current uBlock interface only allows to whitelist a complete domain/sub-domain for everything aka scripts, frames, pictures, xhr, ....

Although this is a limitation of the popup user interface, you can still manually create rules (noop, etc) that are more specific.

puchu commented 2 years ago

same interface but just a few more columns aka "script, frame, image, ..." would fix the problem

gorhill commented 2 years ago

Duplicate of https://github.com/gorhill/uBlock/issues/1038, which has been declined.