uBlock/src/js/scriptlets
Raymond Hill d8975ee580
Improve efficiency of per-site switches badge code
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.
2019-10-31 11:07:11 -04:00
..
cosmetic-logger.js Log procedural cosmetic exception filters 2019-09-30 18:21:24 -04:00
cosmetic-off.js guard against future instances of issue fixed in #3721 2018-05-03 09:55:36 -04:00
cosmetic-on.js guard against future instances of issue fixed in #3721 2018-05-03 09:55:36 -04:00
dom-inspector.js Code review re. dynamically loaded vapi-client-extra.js 2019-09-26 15:57:55 -04:00
dom-survey.js Improve efficiency of per-site switches badge code 2019-10-31 11:07:11 -04:00
element-picker.js Revisit element picker arguments code 2019-09-18 12:17:45 -04:00
load-large-media-all.js guard against future instances of issue fixed in #3721 2018-05-03 09:55:36 -04:00
load-large-media-interactive.js Work toward modernizing code base: promisification 2019-09-17 15:15:01 -04:00
noscript-spoof.js fix #308, #3436, https://github.com/uBlockOrigin/uBlock-issues/issues/155 2018-08-31 18:47:02 -04:00
should-inject-contentscript.js Minor generic code review of changes since 1.18.2 2019-02-02 08:09:34 -05:00
subscriber.js Work toward modernizing code base: promisification 2019-09-17 15:15:01 -04:00