mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/756 This is the code used to find out the count values displayed as badge on the cosmetic filtering and scripting per-site switches in the popup panel. The issue is that document.querySelector*() -- used to find out the number of hidden elements -- is unduly expensive on large DOM. The changes in this commit have focused on avoiding the use of document.querySelector*() as much as possible. Also, the results are cached for reuse unless DOM mutations are detected. |
||
|---|---|---|
| .. | ||
| cosmetic-logger.js | ||
| cosmetic-off.js | ||
| cosmetic-on.js | ||
| dom-inspector.js | ||
| dom-survey.js | ||
| element-picker.js | ||
| load-large-media-all.js | ||
| load-large-media-interactive.js | ||
| noscript-spoof.js | ||
| should-inject-contentscript.js | ||
| subscriber.js | ||