mirror of https://github.com/gorhill/uBlock.git
Fixes #1144
This commit is contained in:
parent
42dae93ff0
commit
09825e1165
|
@ -247,6 +247,7 @@ xo = XMLHttpRequest.prototype.open,\
|
||||||
img = Image;\
|
img = Image;\
|
||||||
Image = function() {\
|
Image = function() {\
|
||||||
var x = new img();\
|
var x = new img();\
|
||||||
|
try{\
|
||||||
Object.defineProperty(x, 'src', {\
|
Object.defineProperty(x, 'src', {\
|
||||||
get: function() {\
|
get: function() {\
|
||||||
return x.getAttribute('src');\
|
return x.getAttribute('src');\
|
||||||
|
@ -255,6 +256,7 @@ set: function(val) {\
|
||||||
x.setAttribute('src', block(val, 'image') ? 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=' : val);\
|
x.setAttribute('src', block(val, 'image') ? 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=' : val);\
|
||||||
}\
|
}\
|
||||||
});\
|
});\
|
||||||
|
}\catch(e){}\
|
||||||
return x;\
|
return x;\
|
||||||
};\
|
};\
|
||||||
open = function(u) {\
|
open = function(u) {\
|
||||||
|
|
Loading…
Reference in New Issue