Skip to content

Commit

Permalink
Add options stub to nofab scriptlet
Browse files Browse the repository at this point in the history
Related issue:
- uBlockOrigin/uAssets#16010

Related AdGuard commit re. `prevent-fab-3.2.0`:
- AdguardTeam/Scriptlets@3bfb9b3
  • Loading branch information
gorhill committed Dec 15, 2022
1 parent af6f1fa commit f596559
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/web_accessible_resources/nofab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit f596559

Please sign in to comment.