From 5a48917b80afa78372a6b798d677ee1beb1a90a0 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 11 Apr 2021 07:11:09 -0400 Subject: [PATCH] Add no-floc scriptlet Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1553 --- assets/resources/scriptlets.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index cc630a15c..6514f39bb 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -665,6 +665,18 @@ })(); +/// no-floc.js +// https://github.com/uBlockOrigin/uBlock-issues/issues/1553 +(function() { + if ( document.interestCohort instanceof Function === false ) { return; } + document.interestCohort = new Proxy(document.interestCohort, { + apply: function() { + return Promise.reject(); + } + }); +})(); + + /// remove-attr.js /// alias ra.js (function() {