nodebb-plugin-ezoic-infinite 1.7.25 → 1.7.26
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 +1 -1
- package/public/client.js +7 -2
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NodeBB Ezoic Infinite Ads — client.js
|
|
2
|
+
* NodeBB Ezoic Infinite Ads — client.js v32
|
|
3
3
|
*
|
|
4
4
|
* Historique des corrections majeures
|
|
5
5
|
* ────────────────────────────────────
|
|
@@ -31,6 +31,11 @@
|
|
|
31
31
|
*
|
|
32
32
|
* v29 Fix ancrage topics : data-index → data-tid.
|
|
33
33
|
*
|
|
34
|
+
* v32 Retour anchorAttr = data-index pour ezoic-ad-between (comme v20.1).
|
|
35
|
+
* data-tid peut être absent sur li[component="category/topic"] → clés
|
|
36
|
+
* invalides → wraps empilés sur pos0. data-index est toujours présent.
|
|
37
|
+
* pruneOrphansBetween cherche li[data-index="N"] — cohérent avec v20.1.
|
|
38
|
+
*
|
|
34
39
|
* v31 pruneOrphans réactivé UNIQUEMENT pour ezoic-ad-between (topics de catégorie).
|
|
35
40
|
* NodeBB NE virtualise PAS les topics dans une liste de catégorie — les ancres
|
|
36
41
|
* restent dans le DOM entre les scrolls. pruneOrphans est donc safe ici et
|
|
@@ -98,7 +103,7 @@
|
|
|
98
103
|
*/
|
|
99
104
|
const KIND = {
|
|
100
105
|
'ezoic-ad-message': { sel: SEL.post, baseTag: '', anchorAttr: 'data-pid', ordinalAttr: 'data-index' },
|
|
101
|
-
'ezoic-ad-between': { sel: SEL.topic, baseTag: 'li', anchorAttr: 'data-
|
|
106
|
+
'ezoic-ad-between': { sel: SEL.topic, baseTag: 'li', anchorAttr: 'data-index', ordinalAttr: 'data-index' },
|
|
102
107
|
'ezoic-ad-categories': { sel: SEL.category, baseTag: 'li', anchorAttr: 'data-cid', ordinalAttr: null },
|
|
103
108
|
};
|
|
104
109
|
|