mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fixes #1144
This commit is contained in:
parent
42dae93ff0
commit
09825e1165
1 changed files with 2 additions and 0 deletions
|
|
@ -247,6 +247,7 @@ xo = XMLHttpRequest.prototype.open,\
|
|||
img = Image;\
|
||||
Image = function() {\
|
||||
var x = new img();\
|
||||
try{\
|
||||
Object.defineProperty(x, 'src', {\
|
||||
get: function() {\
|
||||
return x.getAttribute('src');\
|
||||
|
|
@ -255,6 +256,7 @@ set: function(val) {\
|
|||
x.setAttribute('src', block(val, 'image') ? 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=' : val);\
|
||||
}\
|
||||
});\
|
||||
}\catch(e){}\
|
||||
return x;\
|
||||
};\
|
||||
open = function(u) {\
|
||||
|
|
|
|||
Loading…
Reference in a new issue