1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-10-04 16:47:15 +02:00

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:
Raymond Hill 2022-12-15 13:12:37 -05:00
parent af6f1faeb1
commit f596559103
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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; }