nodebb-plugin-ezoic-infinite 1.4.50 → 1.4.52

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 +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.50",
3
+ "version": "1.4.52",
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"]',
@@ -686,6 +688,7 @@
686
688
  function bind() {
687
689
  if (!$) return;
688
690
 
691
+ console.log('[PLUGIN] Unbinding old hooks');
689
692
  $(window).off('.ezoicInfinite');
690
693
 
691
694
  $(window).on('action:ajaxify.start.ezoicInfinite', () => cleanup());
@@ -705,6 +708,7 @@
705
708
  // category.loaded = infinite scroll, Ezoic déjà chargé normalement
706
709
  waitForContentThenRun();
707
710
  });
711
+ console.log('[PLUGIN] Hooks registered:', 'ajaxify.start', 'ajaxify.end', 'category.loaded', 'topics.loaded', 'topic.loaded', 'posts.loaded');
708
712
 
709
713
  $(window).on('action:topics.loaded.ezoicInfinite', () => {
710
714
  ensureObserver();