tumpio / requestcontrol

A Firefox extension
https://addons.mozilla.org/addon/requestcontrol
Mozilla Public License 2.0
173 stars 25 forks source link

Is this compatible with uBlock Origin? If so, what am I doing wrong? #122

Closed ELLIOTTCABLE closed 4 years ago

ELLIOTTCABLE commented 4 years ago

uBlock Origin has a built-in rule that blocks a URL like this:

http://www.jdoqocy.com/click-6305441-13212017?URL=
    https%3A%2F%2Fwww.fanatical.com%2Fen%2Fdlc%2Fstellaris-federations

i.e. I'll see a screen like this when clicking it:

Screen Shot 2020-03-18 at 08 01 05

Now, I've tried to add a Request Control rule to skip that domain:

Screen Shot 2020-03-18 at 08 03 12

Unfortunately, the additionaly *.jdoqocy.com host and capitalized *URL=* parameter matching doesn't seem to be working — I still get the same uBlock Origin page when clicking those links.

Do blockers like uBlock Origin run "before" Request Control; i.e. can I not catch a request and redirect it so uBlock Origin isn't bothered? Is there any way around this?

ChiefMikeK commented 4 years ago

¯\_(ツ)_/¯ Have you tried posting/asking on reddit?

crssi commented 4 years ago

Do blockers like uBlock Origin run "before" Request Control; i.e. can I not catch a request and redirect it so uBlock Origin isn't bothered? Is there any way around this?

In your case that is most probably true. The order of execution of webextension depends on the order of initializing webextensions. Unfortunatelly FF does not provide ordering of webextensions execution, so it is mostly gambling.

You can try to check like this: disable uBO, enable uBO, test the link.... disable RC, enable RC, test the link

If this does not work, then the ordering is by which webextension was installed first and which last... I do not remember.

Cheers

tumpio commented 4 years ago

I personally just click that "Permanently" button which creates a rule (no-strict-blocking) for uBlock to allow loading the root document for this domain and let Request control redirect it.

uBlock replaces the tab's document with this "Blocked page" document when strict blocking rule is applied. It is not possible to change this behavior from other extension.