nodebb-plugin-ezoic-infinite 1.4.88 → 1.4.89
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/package.json +1 -1
- package/public/client.js +9 -0
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -162,6 +162,15 @@
|
|
|
162
162
|
wrapper.style.margin = '0';
|
|
163
163
|
wrapper.style.padding = '0';
|
|
164
164
|
|
|
165
|
+
// CRITIQUE: Forcer suppression margin sur TOUS les .ezoic-ad enfants
|
|
166
|
+
// Pour overrider les margin-top/bottom:15px !important d'Ezoic
|
|
167
|
+
wrapper.querySelectorAll('.ezoic-ad, span.ezoic-ad').forEach(ezSpan => {
|
|
168
|
+
ezSpan.style.setProperty('margin-top', '0', 'important');
|
|
169
|
+
ezSpan.style.setProperty('margin-bottom', '0', 'important');
|
|
170
|
+
ezSpan.style.setProperty('margin-left', '0', 'important');
|
|
171
|
+
ezSpan.style.setProperty('margin-right', '0', 'important');
|
|
172
|
+
});
|
|
173
|
+
|
|
165
174
|
// Nettoyer aussi DANS le placeholder
|
|
166
175
|
if (ph) {
|
|
167
176
|
Array.from(ph.children).forEach(child => {
|