nodebb-plugin-ezoic-infinite 1.6.78 → 1.6.80
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/library.js +33 -97
- package/package.json +1 -1
- package/public/client.js +167 -1448
- package/public/style.css +20 -64
package/public/style.css
CHANGED
|
@@ -1,81 +1,37 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Keep our NodeBB-inserted wrappers CLS-safe.
|
|
3
|
-
NOTE: must not rely on `.ezoic-ad` because Ezoic uses that class internally.
|
|
4
|
-
*/
|
|
5
1
|
.nodebb-ezoic-wrap {
|
|
6
2
|
display: block;
|
|
7
3
|
width: 100%;
|
|
8
|
-
margin: 0 !important;
|
|
4
|
+
margin: 20px 0 !important;
|
|
9
5
|
padding: 0 !important;
|
|
10
|
-
|
|
6
|
+
clear: both;
|
|
7
|
+
overflow: visible;
|
|
8
|
+
min-height: 50px; /* Aide Ezoic à détecter l'élément */
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
/* Cache les pubs orphelines proprement */
|
|
12
|
+
.nodebb-ezoic-wrap.ez-orphan-hidden {
|
|
13
|
+
display: none !important;
|
|
14
|
+
height: 0 !important;
|
|
15
|
+
min-height: 0 !important;
|
|
14
16
|
margin: 0 !important;
|
|
15
17
|
padding: 0 !important;
|
|
16
|
-
/* Keep the placeholder measurable (IO) but visually negligible */
|
|
17
|
-
min-height: 1px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/*
|
|
21
|
-
.nodebb-ezoic-wrap span.ezoic-ad,
|
|
20
|
+
/* Neutralisation du style interne Ezoic pour éviter les énormes espaces blancs */
|
|
22
21
|
.nodebb-ezoic-wrap .ezoic-ad {
|
|
23
|
-
margin: 0 !important;
|
|
24
|
-
padding: 0 !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* Remove the classic "gap under iframe" (baseline/inline-block) */
|
|
28
|
-
.nodebb-ezoic-wrap,
|
|
29
|
-
.nodebb-ezoic-wrap * {
|
|
30
|
-
line-height: 0 !important;
|
|
31
|
-
font-size: 0 !important;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.nodebb-ezoic-wrap iframe,
|
|
35
|
-
.nodebb-ezoic-wrap div[id$="__container__"] iframe {
|
|
36
|
-
display: block !important;
|
|
37
|
-
vertical-align: top !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.nodebb-ezoic-wrap div[id$="__container__"] {
|
|
41
|
-
display: block !important;
|
|
42
|
-
line-height: 0 !important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/* Collapse empty ad blocks (prevents "holes" when an ad doesn't fill or gets destroyed) */
|
|
47
|
-
.nodebb-ezoic-wrap.is-empty {
|
|
48
|
-
display: block !important;
|
|
49
|
-
margin: 0 !important;
|
|
22
|
+
margin: 0 auto !important;
|
|
50
23
|
padding: 0 !important;
|
|
51
|
-
/* Don't fully collapse (can prevent fill / triggers "unused"), keep it at 1px */
|
|
52
|
-
height: 1px !important;
|
|
53
24
|
min-height: 1px !important;
|
|
54
|
-
overflow: hidden !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/*
|
|
58
|
-
Optional: also neutralize spacing on native Ezoic `.ezoic-ad` blocks.
|
|
59
|
-
(Keeps your previous "CSS very good" behavior.)
|
|
60
|
-
*/
|
|
61
|
-
.ezoic-ad {
|
|
62
|
-
margin: 0 !important;
|
|
63
|
-
padding: 0 !important;
|
|
64
|
-
}
|
|
65
|
-
/* Remove Ezoic's large reserved min-height inside our wrappers (topics/messages) */
|
|
66
|
-
.nodebb-ezoic-wrap .ezoic-ad,
|
|
67
|
-
.nodebb-ezoic-wrap span.ezoic-ad {
|
|
68
|
-
min-height: 1px !important; /* kill 400px gaps */
|
|
69
25
|
height: auto !important;
|
|
26
|
+
line-height: normal !important;
|
|
70
27
|
}
|
|
71
28
|
|
|
72
|
-
/*
|
|
73
|
-
.nodebb-ezoic-wrap .
|
|
74
|
-
|
|
75
|
-
/* Ezoic sometimes injects `position: sticky` inside placements. In long NodeBB topics,
|
|
76
|
-
this can create "gliding" and sudden disappear/reappear effects while scrolling.
|
|
77
|
-
We neutralize sticky positioning *inside our injected wrappers* only. */
|
|
78
|
-
.nodebb-ezoic-wrap .ezads-sticky-intradiv {
|
|
79
|
-
position: static !important;
|
|
80
|
-
top: auto !important;
|
|
29
|
+
/* Enlève les marges doubles si plusieurs pubs se suivent malgré le script */
|
|
30
|
+
.nodebb-ezoic-wrap + .nodebb-ezoic-wrap {
|
|
31
|
+
margin-top: 0 !important;
|
|
81
32
|
}
|
|
33
|
+
|
|
34
|
+
/* Assurer la visibilité pour l'IntersectionObserver d'Ezoic */
|
|
35
|
+
.ezoic-ad iframe {
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
}
|