mirror of https://github.com/gorhill/uBlock.git
Add `options` stub to `nofab` scriptlet
Related issue:
- https://github.com/uBlockOrigin/uAssets/issues/16010
Related AdGuard commit re. `prevent-fab-3.2.0`:
- 3bfb9b39e9
This commit is contained in:
parent
af6f1faeb1
commit
f596559103
|
@ -39,15 +39,19 @@
|
|||
return this;
|
||||
};
|
||||
Fab.prototype.setOption = noopfn;
|
||||
const fab = new Fab(),
|
||||
getSetFab = {
|
||||
get: function() { return Fab; },
|
||||
set: function() {}
|
||||
},
|
||||
getsetfab = {
|
||||
get: function() { return fab; },
|
||||
set: function() {}
|
||||
};
|
||||
Fab.prototype.options = {
|
||||
set: noopfn,
|
||||
get: noopfn,
|
||||
};
|
||||
const fab = new Fab();
|
||||
const getSetFab = {
|
||||
get: function() { return Fab; },
|
||||
set: function() {}
|
||||
};
|
||||
const getsetfab = {
|
||||
get: function() { return fab; },
|
||||
set: function() {}
|
||||
};
|
||||
if ( window.hasOwnProperty('FuckAdBlock') ) { window.FuckAdBlock = Fab; }
|
||||
else { Object.defineProperty(window, 'FuckAdBlock', getSetFab); }
|
||||
if ( window.hasOwnProperty('BlockAdBlock') ) { window.BlockAdBlock = Fab; }
|
||||
|
|
Loading…
Reference in New Issue