|
955 | 955 | case './features/google-rejected.js': return Promise.resolve().then(function () { return googleRejected; });
|
956 | 956 | case './features/gpc.js': return Promise.resolve().then(function () { return gpc; });
|
957 | 957 | case './features/navigator-interface.js': return Promise.resolve().then(function () { return navigatorInterface; });
|
| 958 | + case './features/non-tracking-3p-cookies.js': return Promise.resolve().then(function () { return nonTracking3pCookies; }); |
958 | 959 | case './features/referrer.js': return Promise.resolve().then(function () { return referrer; });
|
959 | 960 | case './features/tracking-cookies-1p.js': return Promise.resolve().then(function () { return trackingCookies1p; });
|
960 | 961 | case './features/tracking-cookies-3p.js': return Promise.resolve().then(function () { return trackingCookies3p; });
|
|
990 | 991 | 'fingerprintingCanvas',
|
991 | 992 | 'trackingCookies3p',
|
992 | 993 | 'trackingCookies1p',
|
| 994 | + 'nonTracking3pCookies', |
993 | 995 | 'googleRejected',
|
994 | 996 | 'gpc',
|
995 | 997 | 'fingerprintingHardware',
|
|
1011 | 1013 | }
|
1012 | 1014 | }
|
1013 | 1015 |
|
1014 |
| - async function init$d (args) { |
| 1016 | + async function init$e (args) { |
1015 | 1017 | initArgs = args;
|
1016 | 1018 | if (!shouldRun()) {
|
1017 | 1019 | return
|
|
1050 | 1052 | });
|
1051 | 1053 | }
|
1052 | 1054 |
|
1053 |
| - function init$c (args) { |
| 1055 | + function init$d (args) { |
1054 | 1056 | const { sessionKey, site } = args;
|
1055 | 1057 | const domainKey = site.domain;
|
1056 | 1058 | const featureName = 'fingerprinting-audio';
|
|
1155 | 1157 |
|
1156 | 1158 | var fingerprintingAudio = /*#__PURE__*/Object.freeze({
|
1157 | 1159 | __proto__: null,
|
1158 |
| - init: init$c |
| 1160 | + init: init$d |
1159 | 1161 | });
|
1160 | 1162 |
|
1161 | 1163 | /**
|
1162 | 1164 | * Overwrites the Battery API if present in the browser.
|
1163 | 1165 | * It will return the values defined in the getBattery function to the client,
|
1164 | 1166 | * as well as prevent any script from listening to events.
|
1165 | 1167 | */
|
1166 |
| - function init$b (args) { |
| 1168 | + function init$c (args) { |
1167 | 1169 | if (globalThis.navigator.getBattery) {
|
1168 | 1170 | const BatteryManager = globalThis.BatteryManager;
|
1169 | 1171 |
|
|
1190 | 1192 |
|
1191 | 1193 | var fingerprintingBattery = /*#__PURE__*/Object.freeze({
|
1192 | 1194 | __proto__: null,
|
1193 |
| - init: init$b |
| 1195 | + init: init$c |
1194 | 1196 | });
|
1195 | 1197 |
|
1196 | 1198 | var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2326 | 2328 | return false
|
2327 | 2329 | }
|
2328 | 2330 |
|
2329 |
| - function init$a (args) { |
| 2331 | + function init$b (args) { |
2330 | 2332 | const { sessionKey, site } = args;
|
2331 | 2333 | const domainKey = site.domain;
|
2332 | 2334 | const featureName = 'fingerprinting-canvas';
|
|
2508 | 2510 |
|
2509 | 2511 | var fingerprintingCanvas = /*#__PURE__*/Object.freeze({
|
2510 | 2512 | __proto__: null,
|
2511 |
| - init: init$a |
| 2513 | + init: init$b |
2512 | 2514 | });
|
2513 | 2515 |
|
2514 |
| - function init$9 (args) { |
| 2516 | + function init$a (args) { |
2515 | 2517 | const Navigator = globalThis.Navigator;
|
2516 | 2518 | const navigator = globalThis.navigator;
|
2517 | 2519 |
|
|
2534 | 2536 |
|
2535 | 2537 | var fingerprintingHardware = /*#__PURE__*/Object.freeze({
|
2536 | 2538 | __proto__: null,
|
2537 |
| - init: init$9 |
| 2539 | + init: init$a |
2538 | 2540 | });
|
2539 | 2541 |
|
2540 | 2542 | /**
|
|
2619 | 2621 | }
|
2620 | 2622 | }
|
2621 | 2623 |
|
2622 |
| - function init$8 (args) { |
| 2624 | + function init$9 (args) { |
2623 | 2625 | const Screen = globalThis.Screen;
|
2624 | 2626 | const screen = globalThis.screen;
|
2625 | 2627 |
|
|
2662 | 2664 |
|
2663 | 2665 | var fingerprintingScreenSize = /*#__PURE__*/Object.freeze({
|
2664 | 2666 | __proto__: null,
|
2665 |
| - init: init$8 |
| 2667 | + init: init$9 |
2666 | 2668 | });
|
2667 | 2669 |
|
2668 |
| - function init$7 () { |
| 2670 | + function init$8 () { |
2669 | 2671 | const navigator = globalThis.navigator;
|
2670 | 2672 | const Navigator = globalThis.Navigator;
|
2671 | 2673 |
|
|
2693 | 2695 |
|
2694 | 2696 | var fingerprintingTemporaryStorage = /*#__PURE__*/Object.freeze({
|
2695 | 2697 | __proto__: null,
|
2696 |
| - init: init$7 |
| 2698 | + init: init$8 |
2697 | 2699 | });
|
2698 | 2700 |
|
2699 |
| - function init$6 () { |
| 2701 | + function init$7 () { |
2700 | 2702 | try {
|
2701 | 2703 | if ('browsingTopics' in Document.prototype) {
|
2702 | 2704 | delete Document.prototype.browsingTopics;
|
|
2723 | 2725 |
|
2724 | 2726 | var googleRejected = /*#__PURE__*/Object.freeze({
|
2725 | 2727 | __proto__: null,
|
2726 |
| - init: init$6 |
| 2728 | + init: init$7 |
2727 | 2729 | });
|
2728 | 2730 |
|
2729 | 2731 | // Set Global Privacy Control property on DOM
|
2730 |
| - function init$5 (args) { |
| 2732 | + function init$6 (args) { |
2731 | 2733 | try {
|
2732 | 2734 | // If GPC on, set DOM property prototype to true if not already true
|
2733 | 2735 | if (args.globalPrivacyControlValue) {
|
|
2754 | 2756 |
|
2755 | 2757 | var gpc = /*#__PURE__*/Object.freeze({
|
2756 | 2758 | __proto__: null,
|
2757 |
| - init: init$5 |
| 2759 | + init: init$6 |
2758 | 2760 | });
|
2759 | 2761 |
|
2760 |
| - function init$4 (args) { |
| 2762 | + function init$5 (args) { |
2761 | 2763 | try {
|
2762 | 2764 | if (navigator.duckduckgo) {
|
2763 | 2765 | return
|
|
2783 | 2785 |
|
2784 | 2786 | var navigatorInterface = /*#__PURE__*/Object.freeze({
|
2785 | 2787 | __proto__: null,
|
| 2788 | + init: init$5 |
| 2789 | + }); |
| 2790 | + |
| 2791 | + function blockCookies (debug) { |
| 2792 | + // disable setting cookies |
| 2793 | + defineProperty(globalThis.document, 'cookie', { |
| 2794 | + configurable: false, |
| 2795 | + set: function (value) { |
| 2796 | + if (debug) { |
| 2797 | + postDebugMessage('jscookie', { |
| 2798 | + action: 'block', |
| 2799 | + reason: 'tracker frame', |
| 2800 | + documentUrl: globalThis.document.location.href, |
| 2801 | + scriptOrigins: [], |
| 2802 | + value: value |
| 2803 | + }); |
| 2804 | + } |
| 2805 | + }, |
| 2806 | + get: () => { |
| 2807 | + if (debug) { |
| 2808 | + postDebugMessage('jscookie', { |
| 2809 | + action: 'block', |
| 2810 | + reason: 'tracker frame', |
| 2811 | + documentUrl: globalThis.document.location.href, |
| 2812 | + scriptOrigins: [], |
| 2813 | + value: 'getter' |
| 2814 | + }); |
| 2815 | + } |
| 2816 | + return '' |
| 2817 | + } |
| 2818 | + }); |
| 2819 | + } |
| 2820 | + |
| 2821 | + function init$4 (args) { |
| 2822 | + args.cookie.debug = args.debug; |
| 2823 | + if (globalThis.top !== globalThis && args.cookie.isTrackerFrame && args.cookie.shouldBlockTrackerCookie && args.cookie.isThirdParty) { |
| 2824 | + // overrides expiry policy with blocking - only in subframes |
| 2825 | + blockCookies(args.debug); |
| 2826 | + } |
| 2827 | + } |
| 2828 | + |
| 2829 | + var trackingCookies3p = /*#__PURE__*/Object.freeze({ |
| 2830 | + __proto__: null, |
| 2831 | + blockCookies: blockCookies, |
2786 | 2832 | init: init$4
|
2787 | 2833 | });
|
2788 | 2834 |
|
2789 | 2835 | function init$3 (args) {
|
| 2836 | + args.cookie.debug = args.debug; |
| 2837 | + if (globalThis.top !== globalThis && !args.cookie.isTrackerFrame && args.cookie.shouldBlockNonTrackerCookie && args.cookie.isThirdParty) { |
| 2838 | + // overrides expiry policy with blocking - only in subframes |
| 2839 | + blockCookies(args.debug); |
| 2840 | + } |
| 2841 | + } |
| 2842 | + |
| 2843 | + var nonTracking3pCookies = /*#__PURE__*/Object.freeze({ |
| 2844 | + __proto__: null, |
| 2845 | + init: init$3 |
| 2846 | + }); |
| 2847 | + |
| 2848 | + function init$2 (args) { |
2790 | 2849 | // Unfortunately, we only have limited information about the referrer and current frame. A single
|
2791 | 2850 | // page may load many requests and sub frames, all with different referrers. Since we
|
2792 | 2851 | if (args.referrer && // make sure the referrer was set correctly
|
|
2812 | 2871 |
|
2813 | 2872 | var referrer = /*#__PURE__*/Object.freeze({
|
2814 | 2873 | __proto__: null,
|
2815 |
| - init: init$3 |
| 2874 | + init: init$2 |
2816 | 2875 | });
|
2817 | 2876 |
|
2818 | 2877 | class Cookie {
|
|
2990 | 3049 | applyCookieExpiryPolicy();
|
2991 | 3050 | }
|
2992 | 3051 |
|
2993 |
| - function init$2 (args) { |
| 3052 | + function init$1 (args) { |
2994 | 3053 | args.cookie.debug = args.debug;
|
2995 | 3054 | loadedPolicyResolve(args.cookie);
|
2996 | 3055 | }
|
|
3004 | 3063 | var trackingCookies1p = /*#__PURE__*/Object.freeze({
|
3005 | 3064 | __proto__: null,
|
3006 | 3065 | load: load,
|
3007 |
| - init: init$2, |
| 3066 | + init: init$1, |
3008 | 3067 | update: update
|
3009 | 3068 | });
|
3010 | 3069 |
|
3011 |
| - function blockCookies (debug) { |
3012 |
| - // disable setting cookies |
3013 |
| - defineProperty(globalThis.document, 'cookie', { |
3014 |
| - configurable: false, |
3015 |
| - set: function (value) { |
3016 |
| - if (debug) { |
3017 |
| - postDebugMessage('jscookie', { |
3018 |
| - action: 'block', |
3019 |
| - reason: 'tracker frame', |
3020 |
| - documentUrl: globalThis.document.location.href, |
3021 |
| - scriptOrigins: [], |
3022 |
| - value: value |
3023 |
| - }); |
3024 |
| - } |
3025 |
| - }, |
3026 |
| - get: () => { |
3027 |
| - if (debug) { |
3028 |
| - postDebugMessage('jscookie', { |
3029 |
| - action: 'block', |
3030 |
| - reason: 'tracker frame', |
3031 |
| - documentUrl: globalThis.document.location.href, |
3032 |
| - scriptOrigins: [], |
3033 |
| - value: 'getter' |
3034 |
| - }); |
3035 |
| - } |
3036 |
| - return '' |
3037 |
| - } |
3038 |
| - }); |
3039 |
| - } |
3040 |
| - |
3041 |
| - function init$1 (args) { |
3042 |
| - args.cookie.debug = args.debug; |
3043 |
| - if (globalThis.top !== globalThis && args.cookie.isTrackerFrame && args.cookie.shouldBlock && args.cookie.isThirdParty) { |
3044 |
| - // overrides expiry policy with blocking - only in subframes |
3045 |
| - blockCookies(args.debug); |
3046 |
| - } |
3047 |
| - } |
3048 |
| - |
3049 |
| - var trackingCookies3p = /*#__PURE__*/Object.freeze({ |
3050 |
| - __proto__: null, |
3051 |
| - init: init$1 |
3052 |
| - }); |
3053 |
| - |
3054 | 3070 | /**
|
3055 | 3071 | * Fixes incorrect sizing value for outerHeight and outerWidth
|
3056 | 3072 | */
|
|
3089 | 3105 | init: init
|
3090 | 3106 | });
|
3091 | 3107 |
|
3092 |
| - exports.init = init$d; |
| 3108 | + exports.init = init$e; |
3093 | 3109 | exports.load = load$1;
|
3094 | 3110 | exports.update = update$1;
|
3095 | 3111 |
|
|
0 commit comments