nodebb-plugin-ezoic-infinite 1.7.68 → 1.7.69

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 +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.7.68",
3
+ "version": "1.7.69",
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
@@ -96,7 +96,9 @@
96
96
  const isMobile = () => { try { return window.innerWidth < 768; } catch (_) { return false; } };
97
97
  const _BOOL_TRUE = new Set([true, 'true', 1, '1', 'on']);
98
98
  const normBool = v => _BOOL_TRUE.has(v);
99
- const isFilled = n => !!(n?.querySelector('iframe, ins, img, video, [data-google-container-id]'));
99
+ // isFilled : exclut l'img reportline Ezoic (ezoicbwa.png) — faux positif
100
+ const isFilled = n => !!(n?.querySelector('iframe, ins, video, [data-google-container-id]'))
101
+ || !!(n?.querySelector('img:not([src*="ezoicbwa"]):not([src*="ezodn.com"])'));
100
102
 
101
103
  function mutate(fn) {
102
104
  S.mutGuard++;