mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-17 07:52:42 +01:00
72726a4759
Specifically, avoid long list of hostnames for the `matches` property[1] when registering the content scripts, as this was causing whole browser freeze for long seconds in Chromium-based browsers (reason unknown). The content scripts themselves will sort out which cosmetic filters to apply on which websites. This change makes it now possible to support annoyances-related lists, and thus two lists have been added: - EasyList -- Annoyances - EasyList -- Cookies Related issue: - https://github.com/uBlockOrigin/uBOL-issues/issues/5 These annoyances-related lists contains many thousands of specific cosmetic filters and as a result, before the above change this was causing long seconds of whole browser freeze when simply modifying the blocking mode of a specific site via the slider in the popup panel. It is now virtually instantaneous, at the cost of injecting larger cosmetic filtering-related content scripts (which typically should be garbage-collected within single-digit milliseconds). Also, added support for entity-based cosmetic filters. (They were previously discarded). --- [1] https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/scripting/RegisteredContentScript |
||
---|---|---|
.. | ||
scripting | ||
about.js | ||
background.js | ||
dashboard-common.js | ||
dashboard.js | ||
ext.js | ||
fetch.js | ||
mode-manager.js | ||
popup.js | ||
ruleset-manager.js | ||
scripting-manager.js | ||
settings.js | ||
storage.js | ||
theme.js | ||
utils.js |