Skip to content

Commit 5a48917

Browse files
committed
Add no-floc scriptlet
Related issue: - uBlockOrigin/uBlock-issues#1553
1 parent 7bf9a83 commit 5a48917

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

assets/resources/scriptlets.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,18 @@
665665
})();
666666

667667

668+
/// no-floc.js
669+
// https://github.com/uBlockOrigin/uBlock-issues/issues/1553
670+
(function() {
671+
if ( document.interestCohort instanceof Function === false ) { return; }
672+
document.interestCohort = new Proxy(document.interestCohort, {
673+
apply: function() {
674+
return Promise.reject();
675+
}
676+
});
677+
})();
678+
679+
668680
/// remove-attr.js
669681
/// alias ra.js
670682
(function() {

0 commit comments

Comments
 (0)