1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00
uBlock/platform
Raymond Hill 433adac6ff
[mv3] Add ability to handle entity-based CSS and scriptlet injection filters
This commit adds the ability to inject entity-based plain CSS
filters and also a set of the most commonly used entity-based
scriptlet injection filters.

Since the scripting API is not compatible with entity patterns,
the entity-related content scripts are injected in all documents
and the entity-matching is done by the content script themselves.

Given this, entity-based content scripts are enabled only when
working in the Complete filtering mode, there won't be any
entity-based filters injected in lower modes.

Also, since there is no way to reasonably have access to the
Public Suffix List in the content scripts, the entity-matching
algorithm is an approximation, though I expect false positives
to be rare (time will tell). In the event of such false
positive, simply falling back to Optimal mode will fix the
issue.

The following issues have been fixed at the same time:

Fixed the no-filtering mode related rules having lower priority
then redirect rules, i.e. redirect rules would still be applied
despite disabling all filtering on a site.

Fixed improper detection of changes to the generic-related CSS
content script, potentially causing undue delays when for example
trying to access the popup panel while working in Complete mode.
The scripting MV3 can be quite slow when registering/updating
large content scripts, so uBOL does its best to call the API only
if really needed, but there had been a regression in the recent
builds preventing uBO from properly detecting unchanged content
script parameters.
2022-10-20 15:48:06 -04:00
..
browser Convert publicsuffixlist.js into an ES module (#3846) 2021-08-23 09:42:27 -04:00
chromium Do not block root document at launch in Chromium-based browsers 2022-03-30 12:15:44 -04:00
common Fix spurious warning 2022-10-05 07:28:01 -04:00
dig Fix dig-snfe modifiers to properly detect changes in results 2021-12-06 08:01:05 -05:00
firefox Add command to toggle cosmetic filtering 2022-02-22 08:44:09 -05:00
mv3 [mv3] Add ability to handle entity-based CSS and scriptlet injection filters 2022-10-20 15:48:06 -04:00
nodejs Add test to detect case of improper deserialization 2022-01-12 09:03:38 -05:00
npm Add experimental mv3 version 2022-09-06 13:47:52 -04:00
opera Add command to toggle cosmetic filtering 2022-02-22 08:44:09 -05:00
safari Clarify that the code base was really old and obsolete 2019-09-22 09:57:38 -04:00
thunderbird Fix popup panel for Thunderbird 2022-06-18 11:18:27 -04:00