nodebb-plugin-ezoic-infinite 1.4.49 → 1.4.51

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/package.json +1 -1
  2. package/public/client.js +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.49",
3
+ "version": "1.4.51",
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
@@ -1,7 +1,9 @@
1
1
  (function () {
2
2
  'use strict';
3
+ console.log('[PLUGIN] Ezoic plugin loading...');
3
4
 
4
5
  const $ = (typeof window.jQuery === 'function') ? window.jQuery : null;
6
+ console.log('[PLUGIN] jQuery:', !!$);
5
7
 
6
8
  const SELECTORS = {
7
9
  topicItem: 'li[component="category/topic"]',
@@ -553,6 +555,7 @@
553
555
  }
554
556
 
555
557
  function cleanup() {
558
+ console.log('[CLEANUP] Called - navigation started');
556
559
  destroyUsedPlaceholders();
557
560
 
558
561
  state.pageKey = getPageKey();
@@ -685,6 +688,7 @@
685
688
  function bind() {
686
689
  if (!$) return;
687
690
 
691
+ console.log('[PLUGIN] Unbinding old hooks');
688
692
  $(window).off('.ezoicInfinite');
689
693
 
690
694
  $(window).on('action:ajaxify.start.ezoicInfinite', () => cleanup());
@@ -704,6 +708,7 @@
704
708
  // category.loaded = infinite scroll, Ezoic déjà chargé normalement
705
709
  waitForContentThenRun();
706
710
  });
711
+ console.log('[PLUGIN] Hooks registered:', 'ajaxify.start', 'ajaxify.end', 'category.loaded', 'topics.loaded', 'topic.loaded', 'posts.loaded');
707
712
 
708
713
  $(window).on('action:topics.loaded.ezoicInfinite', () => {
709
714
  ensureObserver();