diff options
Diffstat (limited to 'src/js/contentscript-start.js')
-rw-r--r-- | src/js/contentscript-start.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/contentscript-start.js b/src/js/contentscript-start.js index ac7d924..a625085 100644 --- a/src/js/contentscript-start.js +++ b/src/js/contentscript-start.js @@ -195,9 +195,13 @@ var hideElements = function(selectors) { // https://github.com/gorhill/uBlock/pull/555 // Not all nodes can be shadowed: // https://github.com/w3c/webcomponents/issues/102 + // https://github.com/gorhill/uBlock/issues/762 + // Remove display style that might get in the way of the shadow + // node doing its magic. try { shadow = elem.createShadowRoot(); shadow.className = sessionId; + elem.style.removeProperty('display'); } catch (ex) { elem.style.setProperty('display', 'none', 'important'); } |