1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-22 18:32:45 +01:00
uBlock/platform
Raymond Hill 6dbbb95b04
[mv3] Mitigation: Inject CSS user styles to enforce cosmetic filtering
Related issues:
- https://github.com/uBlockOrigin/uBOL-issues/issues/5#issuecomment-1575425913
- https://github.com/w3c/webextensions/issues/403

Currently, there is no other way to inject CSS user styles than to
wake up the service worker, so that it can inject the CSS styles
itself using the `scripting.insertCSS()` method.

If ever the MV3 API supports injecting CSS user styles directly
from a content script, uBOL will be back to be fully declarative.

At this point the service worker is very lightweight since the
filtering is completely  declarative, so this is not too much of
an issue performance-wise except for the fact that waking up the
service worker for the sole purpose of injecting CSS user styles
and nothing else introduces a pointless overhead.

Hopefully the MV3 API will mature to address such inefficiency.
2023-06-04 11:32:55 -04:00
..
browser Rewrite static filtering parser 2023-01-23 16:53:18 -05:00
chromium Report injected scriptlets in troubleshooting information 2023-05-09 12:44:14 -04:00
common Return string when storage.sync.get() promise fails 2023-05-16 19:26:46 -04:00
dig Fix filter list paths 2023-05-07 09:19:01 -04:00
firefox Fix https://github.com/uBlockOrigin/uBlock-issues/issues/2668 2023-05-23 21:49:42 -04:00
mv3 [mv3] Mitigation: Inject CSS user styles to enforce cosmetic filtering 2023-06-04 11:32:55 -04:00
nodejs Rewrite static filtering parser 2023-01-23 16:53:18 -05:00
npm Fix npm dev dependencies -- this fixes "make test" 2022-12-14 10:55:02 -05:00
opera Reverse usage of browser.alarms 2023-04-26 08:00:13 -04:00
safari Clarify that the code base was really old and obsolete 2019-09-22 09:57:38 -04:00
thunderbird Fix thunderbird manifest 2023-04-27 21:50:44 -04:00