mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
https://github.com/chrisaljoudi/uBlock/issues/1528: apply fix to scriptlets too
This commit is contained in:
parent
1a380f0959
commit
94a1d72fc8
@ -19,7 +19,7 @@
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
|
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
/* jshint multistr: true */
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
|
@ -19,7 +19,7 @@
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -31,7 +31,14 @@
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
return;
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// This can happen
|
||||
|
@ -19,7 +19,7 @@
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -31,8 +31,14 @@
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
//console.debug('cosmetic-off.js > not a HTLMDocument');
|
||||
return;
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// This can happen
|
||||
|
@ -19,7 +19,7 @@
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -31,8 +31,14 @@
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
//console.debug('cosmetic-on.js > not a HTLMDocument');
|
||||
return;
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// This can happen
|
||||
|
@ -19,7 +19,7 @@
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
|
||||
@ -31,8 +31,14 @@
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
//console.debug('cosmetic-survey.js > not a HTLMDocument');
|
||||
return;
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// This can happen
|
||||
|
@ -19,7 +19,7 @@
|
||||
Home: https://github.com/gorhill/uBlock
|
||||
*/
|
||||
|
||||
/* global vAPI, HTMLDocument */
|
||||
/* global vAPI, HTMLDocument, XMLDocument */
|
||||
|
||||
/******************************************************************************/
|
||||
/******************************************************************************/
|
||||
@ -32,7 +32,14 @@
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/464
|
||||
if ( document instanceof HTMLDocument === false ) {
|
||||
return;
|
||||
// https://github.com/chrisaljoudi/uBlock/issues/1528
|
||||
// A XMLDocument can be a valid HTML document.
|
||||
if (
|
||||
document instanceof XMLDocument === false ||
|
||||
document.createElement('div') instanceof HTMLDivElement === false
|
||||
) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// This can happen
|
||||
|
Loading…
Reference in New Issue
Block a user