nodebb-plugin-ezoic-infinite 1.7.98 → 1.8.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.7.98",
3
+ "version": "1.8.0",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -77,7 +77,6 @@
77
77
  const A_CREATED = 'data-ezoic-created'; // timestamp création ms
78
78
  const A_SHOWN = 'data-ezoic-shown'; // timestamp dernier showAds ms
79
79
 
80
- const EMPTY_CHECK_MS = 20_000; // délai avant collapse d'un wrap vide post-show
81
80
  const MIN_PRUNE_AGE_MS = 8_000; // délai de grâce avant pruning (stabilisation DOM)
82
81
  const MAX_INSERTS_RUN = 6; // max insertions par appel runCore
83
82
  const MAX_INFLIGHT = 4; // max showAds() simultanés
@@ -625,7 +624,6 @@ function startShowBatch(ids) {
625
624
  try { ez.showAds(...valid); } catch (_) {}
626
625
  for (const id of valid) {
627
626
  S.ezActiveIds.add(id);
628
- scheduleEmptyCheck(id, t);
629
627
  }
630
628
  setTimeout(() => { clearTimeout(timer); release(); }, 700);
631
629
  };
@@ -635,18 +633,6 @@ function startShowBatch(ids) {
635
633
  }
636
634
 
637
635
 
638
- function scheduleEmptyCheck(id, showTs) {
639
- setTimeout(() => {
640
- try {
641
- const ph = document.getElementById(`${PH_PREFIX}${id}`);
642
- const wrap = ph?.closest?.(`.${WRAP_CLASS}`);
643
- if (!wrap || !ph?.isConnected) return;
644
- if (parseInt(wrap.getAttribute(A_SHOWN) || '0', 10) > showTs) return;
645
- wrap.classList.toggle('is-empty', !isFilled(ph));
646
- } catch (_) {}
647
- }, EMPTY_CHECK_MS);
648
- }
649
-
650
636
  // ── Patch Ezoic showAds ────────────────────────────────────────────────────
651
637
  //
652
638
  // Intercepte ez.showAds() pour :
package/public/style.css CHANGED
@@ -61,15 +61,6 @@
61
61
  Ajouté 20s après showAds si aucun fill détecté.
62
62
  Collapse à 1px (pas 0) : reste observable par l'IO si le fill arrive tard.
63
63
  */
64
- .nodebb-ezoic-wrap.is-empty {
65
- display: block !important;
66
- height: 1px !important;
67
- min-height: 1px !important;
68
- max-height: 1px !important;
69
- margin: 0 !important;
70
- padding: 0 !important;
71
- overflow: hidden !important;
72
- }
73
64
 
74
65
  /* ── Ezoic global (hors de nos wraps) ────────────────────────────────────── */
75
66
  .ezoic-ad {