Eli Grey
1285f78e05
Don't assume document.documentElement is non-null ( #3857 )
...
* Fix uBlockOrigin/uBlock-issues#1756
This PR fixes uBlockOrigin/uBlock-issues#1756 .
* fix dom-inspector.js
* more explicit if statements
* these changes should also be safe
2021-10-14 09:08:08 -04:00
Raymond Hill
35aefed926
Add support to chain :style() to procedural operators
...
Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/382
Additionally, remnant code for pseudo-user stylesheets
has been removed. Related commit:
- 5c68867b92
2020-09-07 08:28:01 -04:00
Raymond Hill
efa4ff3bcf
Code review re. dynamically loaded vapi-client-extra.js
...
Related commit:
- 87d0e456f1
Ensure that the code which depends on extending
`vapi-client.js` is ready to deal with
`vapi-client-extra.js` failing to load.
2019-09-26 15:57:55 -04:00
Raymond Hill
87d0e456f1
Simplify client messaging code
...
Little-used code from vapi-client.js has been moved
to vapi-client-extra.js. Given that vapi-client.js
is injected in all web pages, this means less dead
code being injected in all pages.
Swathes of code in vapi-client.js was used only in
a few very specific cases, such as when the logger's
DOM inspector is opened or when the "Filter lists"
pane in the dashboard is opened -- and thus to avoid
that little used code to be loaded in every web page
unconditionally, it has been moved to its own
separate file, vapi-client.extra.js.
vapi-client-extra.js is loaded declaratively or
programmatically only where needed.
2019-09-19 08:31:38 -04:00
Raymond Hill
8be1aed04d
guard against future instances of issue fixed in #3721
2018-05-03 09:55:36 -04:00
Raymond Hill
ec29c9a127
fix #3382
2017-12-31 16:05:23 -05:00
Kacper Michajłow
ec70c75264
improve DOM inspector ( #3254 )
...
* dom-inspector: Improvments
- Fix race between userCSS injection and element highlight resulting in none or not all elements highlighted.
- Fix page being scanned twice resulting in unneeded slowdown.
* dom-inspector: Clear mutationTimer to allow more than one update.
* dom-inspector: Fix procedural filters shown as declarative with expando.
2017-11-21 18:08:32 -05:00
gorhill
806032cdc4
improve DOM inspector
...
- Fix regressions reported in #3159
- Fix #2001
- Fix some item points in #407
2017-11-20 08:42:32 -05:00
gorhill
374e157b11
fix #3159
2017-11-14 15:03:20 -05:00
gorhill
6112a68faf
fix #2984
2017-10-21 13:43:46 -04:00
Nik Rolls
a121f2261d
DOM Inspector: Fallback to .childNodes when .children not present ( #2242 )
...
When the browser does not support .children on the svgRoot element
(MS Edge, for example), filter childNodes for elements and use that
list instead.
2017-02-28 01:19:00 -05:00
gorhill
73a69711f2
add chainable and recursive cosmetic procedural filters
2016-12-25 16:56:39 -05:00
gorhill
c39adacc50
better abstraction of user styles
2016-12-16 16:25:36 -05:00
gorhill
6fd0bb4291
more refactoring of content script: better modularization of various components
2016-08-12 08:55:35 -04:00
gorhill
02e6b088ef
further refactoring + performance: skip surveying DOM after too many empty resultset
2016-07-09 19:21:46 -04:00
gorhill
7f9c01d38f
fix https://github.com/gorhill/uBlock/issues/769#issuecomment-229873048 and more completely #762 + dom inspector regressions
2016-07-01 08:09:48 -04:00
gorhill
6c513629bf
refactor content script code + add support for new :has & :xpath filters
...
Aside extending cosmetic filtering abilities, I expect this will
also take care of some long standing issues (I will have to find them
and mark them as "resolved" by this commit, as time allow).
2016-06-27 19:09:04 -04:00
gorhill
eb8c17d55c
this takes care of #1443
2016-03-08 16:35:06 -05:00
gorhill
89148351e8
#1163 : this implements "block elements by size"
2016-01-17 13:30:43 -05:00
gorhill
e2e86de89a
this fixes #1031
2015-12-08 14:06:33 -05:00
gorhill
3b61f7d11d
minor code review
2015-12-07 11:06:06 -05:00
gorhill
89f0e8f1a9
this fixes #1015
2015-12-05 18:02:04 -05:00
gorhill
94a1d72fc8
https://github.com/chrisaljoudi/uBlock/issues/1528 : apply fix to scriptlets too
2015-08-28 10:44:33 -04:00
gorhill
9b4b998364
#608 : this fixes a bunch of strictness-related warnings
2015-08-18 11:44:24 -04:00
gorhill
595b239df1
this fixes #546
2015-07-30 12:29:37 -04:00
gorhill
d3f741f8fd
DOM inspector: to properly report cosmetic filters for dynamically added elements
2015-07-11 07:38:03 -04:00
gorhill
e3e4d577ee
this makes shadow DOM work on Firefox
2015-07-06 13:53:39 -04:00
gorhill
497eb87fb0
avoid reporting the DOM layout while it is loading
2015-07-06 10:24:28 -04:00
gorhill
febb18147a
#435 : using shadow nodes instead of modifying directly nodes' style attr
2015-07-06 07:48:56 -04:00
gorhill
93c4502acc
bypass FF's built CSS.escape(), to benefit from serializeAsString
2015-07-03 06:56:15 -04:00
gorhill
cc6a811934
CSS.escape: support "serialize a string" to avoid pointless escaping
2015-07-03 06:34:18 -04:00
gorhill
a0607702b1
dom inspector: this fixes non-sticky toolbars
2015-07-01 09:19:13 -04:00
gorhill
9becb466d4
functional DOM inspector
2015-06-30 18:02:29 -04:00
gorhill
aeba71790f
some refactoring: move to-aux-process-messaging timeout into vAPI
2015-06-29 10:46:20 -04:00
gorhill
39b0d719c0
some more work re inspector
2015-06-28 17:42:08 -04:00
gorhill
f988d74b4d
DOM inspector: incremental rendering when inspected DOM changes
2015-06-27 13:32:10 -04:00
gorhill
7d2855180c
some refactoring of new DOM inspector code
2015-06-26 15:45:54 -04:00