nodebb-plugin-ezoic-infinite 1.4.52 → 1.4.53

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 +1 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.52",
3
+ "version": "1.4.53",
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,10 +1,6 @@
1
1
  (function () {
2
2
  'use strict';
3
- console.log('[PLUGIN] Ezoic plugin loading...');
4
-
5
3
  const $ = (typeof window.jQuery === 'function') ? window.jQuery : null;
6
- console.log('[PLUGIN] jQuery:', !!$);
7
-
8
4
  const SELECTORS = {
9
5
  topicItem: 'li[component="category/topic"]',
10
6
  postItem: '[component="post"][data-pid]',
@@ -483,9 +479,7 @@
483
479
 
484
480
  if (findWrap(kindClass, afterPos)) continue;
485
481
 
486
- const liveArr = (kindClass === 'ezoic-ad-between') ? state.liveBetween
487
- : (kindClass === 'ezoic-ad-message') ? state.liveMessage
488
- : state.liveCategory, pick = pickId(kindPool, liveArr);
482
+ const pick = pickId(kindPool, []);
489
483
  const id = pick.id;
490
484
  if (!id) break;
491
485
 
@@ -555,7 +549,6 @@
555
549
  }
556
550
 
557
551
  function cleanup() {
558
- console.log('[CLEANUP] Called - navigation started');
559
552
  destroyUsedPlaceholders();
560
553
 
561
554
  state.pageKey = getPageKey();
@@ -688,7 +681,6 @@
688
681
  function bind() {
689
682
  if (!$) return;
690
683
 
691
- console.log('[PLUGIN] Unbinding old hooks');
692
684
  $(window).off('.ezoicInfinite');
693
685
 
694
686
  $(window).on('action:ajaxify.start.ezoicInfinite', () => cleanup());
@@ -708,8 +700,6 @@
708
700
  // category.loaded = infinite scroll, Ezoic déjà chargé normalement
709
701
  waitForContentThenRun();
710
702
  });
711
- console.log('[PLUGIN] Hooks registered:', 'ajaxify.start', 'ajaxify.end', 'category.loaded', 'topics.loaded', 'topic.loaded', 'posts.loaded');
712
-
713
703
  $(window).on('action:topics.loaded.ezoicInfinite', () => {
714
704
  ensureObserver();
715
705
  waitForContentThenRun();