mirror of https://github.com/gorhill/uBlock.git
Fix zapper not being able to remove SVG elements
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1237
This commit is contained in:
parent
57c7fd1900
commit
6f7801d433
|
@ -150,7 +150,6 @@ const candidateFromFilterChoice = function(filterChoice) {
|
|||
return filter;
|
||||
}
|
||||
|
||||
// TODO: Maybe add another step to remove attribute values?
|
||||
const specificity = [
|
||||
0b0000, // remove hierarchy; remove id, nth-of-type, attribute values
|
||||
0b0010, // remove hierarchy; remove id, nth-of-type
|
||||
|
|
|
@ -898,7 +898,7 @@ const zapElementAtPoint = function(mx, my, options) {
|
|||
elem = elementFromPoint(mx, my);
|
||||
}
|
||||
|
||||
if ( elem instanceof HTMLElement === false ) { return; }
|
||||
if ( elem instanceof Element === false ) { return; }
|
||||
|
||||
const getStyleValue = function(elem, prop) {
|
||||
const style = window.getComputedStyle(elem);
|
||||
|
|
Loading…
Reference in New Issue