mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-14 23:12:28 +02:00
document.head isn't always available in Safari
This commit is contained in:
parent
bccf3d68e2
commit
7f57684e2b
@ -306,7 +306,7 @@ if (window.chrome) {
|
|||||||
"return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));",
|
"return block(u, 'xmlhttprequest') ? null : xo.apply(this, [].slice.call(arguments));",
|
||||||
"};",
|
"};",
|
||||||
"})();"].join('');
|
"})();"].join('');
|
||||||
document.head.removeChild(document.head.appendChild(tmpJS));
|
document.documentElement.removeChild(document.documentElement.appendChild(tmpJS));
|
||||||
};
|
};
|
||||||
|
|
||||||
document.addEventListener('DOMSubtreeModified', firstMutation, true);
|
document.addEventListener('DOMSubtreeModified', firstMutation, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user