nodebb-plugin-ezoic-infinite 1.8.91 → 1.8.93
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/.claude/settings.local.json +10 -0
- package/package.json +1 -1
- package/public/client.js +5 -11
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"WebFetch(domain:registry.npmjs.org)",
|
|
5
|
+
"Bash(curl -sL \"https://registry.npmjs.org/nodebb-plugin-ezoic-infinite/-/nodebb-plugin-ezoic-infinite-1.8.81.tgz\" -o /tmp/ezoic-1.8.81.tgz && tar -tzf /tmp/ezoic-1.8.81.tgz)",
|
|
6
|
+
"Bash(tar -xzf /tmp/ezoic-1.8.81.tgz -C /tmp/ package/library.js package/public/client.js package/package.json)",
|
|
7
|
+
"Bash(cd /tmp && curl -sL \"https://registry.npmjs.org/nodebb-plugin-ezoic-infinite/-/nodebb-plugin-ezoic-infinite-1.8.81.tgz\" -o ezoic-1.8.81.tgz && tar -xzf ezoic-1.8.81.tgz && echo \"Extracted OK\")"
|
|
8
|
+
]
|
|
9
|
+
}
|
|
10
|
+
}
|
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* NodeBB Ezoic Infinite Ads — client.js v2.5.
|
|
2
|
+
* NodeBB Ezoic Infinite Ads — client.js v2.5.1
|
|
3
3
|
*
|
|
4
4
|
* Architecture: proven v50 core + targeted improvements.
|
|
5
5
|
* Ezoic API: showAds() + destroyPlaceholders() per official docs.
|
|
@@ -545,14 +545,6 @@
|
|
|
545
545
|
window.ezstandalone = window.ezstandalone || {};
|
|
546
546
|
const ez = window.ezstandalone;
|
|
547
547
|
const doShow = () => {
|
|
548
|
-
const status = ez.loadingStatus;
|
|
549
|
-
if (status && status !== 'complete') {
|
|
550
|
-
// Ezoic not ready yet — release slot and let next burst retry
|
|
551
|
-
clearTimeout(timer);
|
|
552
|
-
release();
|
|
553
|
-
setTimeout(() => { if (!isBlocked()) enqueueShow(id); }, 800);
|
|
554
|
-
return;
|
|
555
|
-
}
|
|
556
548
|
try { ez.showAds(id); } catch (_) {}
|
|
557
549
|
if (wrap) scheduleUncollapseChecks(wrap, id);
|
|
558
550
|
scheduleEmptyCheck(id, t);
|
|
@@ -912,8 +904,10 @@
|
|
|
912
904
|
return;
|
|
913
905
|
}
|
|
914
906
|
|
|
915
|
-
// Normal exit: placeholders mounted, no reload triggered (healthy load)
|
|
916
|
-
if (
|
|
907
|
+
// Normal exit: placeholders mounted, no reload triggered (healthy load).
|
|
908
|
+
// Exception: if Ezoic status is stuck (not absent and not 'complete'), continue
|
|
909
|
+
// so crash detection below can trigger the sa.min.js reload.
|
|
910
|
+
if (S.mountedIds.size > 0 && !_scriptReloaded && (!status || status === 'complete')) return;
|
|
917
911
|
// Exit once reload is done and re-show has been triggered
|
|
918
912
|
if (_scriptReloaded && _postReloadShown) return;
|
|
919
913
|
|