nodebb-plugin-ezoic-infinite 1.8.57 → 1.8.58

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.
Files changed (2) hide show
  1. package/library.js +2 -5
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -139,6 +139,7 @@ const EZOIC_SCRIPTS = [
139
139
  HEAD_PRECONNECTS,
140
140
 
141
141
  // CMP en premier
142
+ '<script data-cfasync="false" src="https://cmp.gatekeeperconsent.com/min.js"></script>',
142
143
  '<script data-cfasync="false" src="https://the.gatekeeperconsent.com/cmp.min.js"></script>',
143
144
 
144
145
  // Standalone Ezoic
@@ -186,11 +187,7 @@ plugin.injectEzoicHead = async (data) => {
186
187
 
187
188
  if (!excluded) {
188
189
  const existing = data.templateData.customHTML || '';
189
-
190
- // ✅ Anti-doublon côté rendu (si un thème/plugin ajoute déjà sa.min.js)
191
- if (!existing.includes('www.ezojs.com/ezoic/sa.min.js')) {
192
- data.templateData.customHTML = EZOIC_SCRIPTS + existing;
193
- }
190
+ data.templateData.customHTML = EZOIC_SCRIPTS + existing;
194
191
  }
195
192
  } catch (_) {}
196
193
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.8.57",
3
+ "version": "1.8.58",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",