1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-07 03:12:33 +01:00
uBlock/platform/mv3/extension
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
..
_locales Import translation work from https://crowdin.com/project/ublock 2023-05-17 10:25:27 -04:00
css [mv3] Introduce per-site filtering modes in lieu of per-site toggle switch 2022-10-10 12:28:24 -04:00
img [mv3] Add ability to enable/disable filter lists 2022-09-13 17:44:24 -04:00
js [mv3] Mitigation: Inject CSS user styles to enforce cosmetic filtering 2023-06-04 11:32:55 -04:00
about.html Code maintenance: replace uDom.js with dom.js 2022-11-12 09:51:22 -05:00
dashboard.html Code maintenance: replace uDom.js with dom.js 2022-11-12 09:51:22 -05:00
popup.html Fix mv3 builds 2023-04-11 09:35:31 -04:00
settings.html Fix mv3 builds 2023-04-11 09:35:31 -04:00