@duckduckgo/autoconsent 16.46.0 → 16.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3062,7 +3062,8 @@
3062
3062
  }
3063
3063
  }
3064
3064
  });
3065
- const heuristicRules = isTop && this.config.heuristicMode !== "off" && this.state.findCmpAttempts % 2 === 0 ? [new AutoConsentHeuristicCMP(this, this.config.heuristicMode)] : [];
3065
+ const heuristicEnabled = isTop && this.config.heuristicMode !== "off";
3066
+ const heuristicRules = heuristicEnabled && this.state.findCmpAttempts % 2 === 0 ? [new AutoConsentHeuristicCMP(this, this.config.heuristicMode)] : [];
3066
3067
  const rulesPriorityStages = [
3067
3068
  ["site-specific", siteSpecificRules],
3068
3069
  ["generic", genericRules],
@@ -3103,7 +3104,8 @@
3103
3104
  this.detectHeuristics();
3104
3105
  if (foundCMPs.length === 0 && retries > 0) {
3105
3106
  const waitFor2 = [this.domActions.wait(500)];
3106
- if (this.state.findCmpAttempts > 1) {
3107
+ const heuristicSkipped = heuristicEnabled && heuristicRules.length === 0;
3108
+ if (this.state.findCmpAttempts > 1 && !heuristicSkipped) {
3107
3109
  waitFor2.push(mutationObserver);
3108
3110
  }
3109
3111
  try {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2026.10.4",
4
+ "version": "2026.10.6",
5
5
  "background": {
6
6
  "scripts": [
7
7
  "background.bundle.js"