Index: include.preload.js |
=================================================================== |
--- a/include.preload.js |
+++ b/include.preload.js |
@@ -341,16 +341,17 @@ |
function ElemHide() |
{ |
this.shadow = this.createShadowTree(); |
this.style = null; |
this.tracer = null; |
this.inject = true; |
this.emulatedPatterns = null; |
+ this.emulatedSelectors = null; |
this.elemHideEmulation = new ElemHideEmulation( |
this.addSelectors.bind(this), |
this.hideElements.bind(this) |
); |
} |
ElemHide.prototype = { |
selectorGroupSize: 200, |
@@ -449,18 +450,20 @@ |
// https://bugs.chromium.org/p/chromium/issues/detail?id=632009 |
// https://bugzilla.mozilla.org/show_bug.cgi?id=1310026 |
this.injectSelectors(selectors, filters); |
Manish Jethani
2017/10/14 00:08:03
We should also do the same for when styles are inj
|
} |
else |
{ |
chrome.runtime.sendMessage({ |
type: "elemhide.injectSelectors", |
- selectors |
+ selectors, |
Manish Jethani
2017/10/14 00:08:03
Note that earlier in this function we're exiting i
Manish Jethani
2017/10/14 13:38:18
Done.
|
+ previousSelectors: this.emulatedSelectors |
}); |
+ this.emulatedSelectors = selectors; |
} |
if (this.tracer) |
this.tracer.addSelectors(selectors, filters); |
}, |
hideElements(elements, filters) |
{ |