commit: 185490b972e4c02db40ac7b0427475850264b24d
parent 6438b22add237ba14a9fe907ba161962836318f8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 21 Apr 2021 04:24:13 +0200
anti-cohort.js: Grab detection from https://amifloced.org/
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/javascript/anti-cohort.js b/javascript/anti-cohort.js
@@ -2,9 +2,9 @@
// Distributed under CC0
// Spreading is highly-encouraged
-// this detection wasn't tested yet, FLoC hasn't been deployed yet
-if(!(document.interestCohort === undefined)) {
- alert("Your browser seems to support ‘Federated’ Learning of Cohorts, which means it assigns you to a herd by tracking your browsing habits.");
+// detection grabbed from https://amifloced.org/
+if('interestCohort' in document) {
+ alert("Your browser seems to support ‘Federated’ Learning of Cohorts, which means it assigns you to a herd by tracking your browsing habits. Check https://AmIFLoCed.org/ for more information.");
}
// https://github.com/WICG/floc
// Yes the Web platform Incubator Community Group is full of shit like this