nodebb-plugin-ezoic-infinite 1.8.68 → 1.8.70
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 +57 -124
- package/package.json +2 -2
- package/public/client.js +374 -433
- package/public/style.css +19 -95
package/public/style.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* NodeBB Ezoic Infinite Ads — style.css
|
|
2
|
+
* NodeBB Ezoic Infinite Ads — style.css (v20)
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/* ── Wrapper ──────────────────────────────────────────────────────────────── */
|
|
@@ -8,67 +8,59 @@
|
|
|
8
8
|
width: 100%;
|
|
9
9
|
margin: 0 !important;
|
|
10
10
|
padding: 0 !important;
|
|
11
|
-
overflow:
|
|
12
|
-
contain:
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
contain: layout style;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/* Placeholder : 1px minimum pour rester visible par l'IntersectionObserver */
|
|
15
16
|
.nodebb-ezoic-wrap > [id^="ezoic-pub-ad-placeholder-"] {
|
|
16
17
|
display: block;
|
|
17
18
|
margin: 0 !important;
|
|
18
19
|
padding: 0 !important;
|
|
19
20
|
min-height: 1px;
|
|
20
|
-
max-width: 100%;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/* ── Ezoic
|
|
23
|
+
/* ── Ciblage précis des nœuds Ezoic dans nos wraps ───────────────────────── */
|
|
24
24
|
|
|
25
|
+
/* Supprime le gap "baseline" sous les iframes */
|
|
25
26
|
.nodebb-ezoic-wrap iframe,
|
|
26
27
|
.nodebb-ezoic-wrap div[id$="__container__"] iframe {
|
|
27
28
|
display: block !important;
|
|
29
|
+
vertical-align: top !important;
|
|
28
30
|
line-height: 0 !important;
|
|
29
31
|
font-size: 0 !important;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
.nodebb-ezoic-wrap div[id$="__container__"]
|
|
33
|
-
.nodebb-ezoic-wrap [id^="google_ads_iframe_"][id$="__container__"] {
|
|
34
|
+
.nodebb-ezoic-wrap div[id$="__container__"] {
|
|
34
35
|
display: block !important;
|
|
35
36
|
line-height: 0 !important;
|
|
36
|
-
font-size: 0 !important;
|
|
37
|
-
overflow: visible !important;
|
|
38
|
-
margin-left: auto !important;
|
|
39
|
-
margin-right: auto !important;
|
|
40
|
-
box-sizing: border-box !important;
|
|
41
|
-
max-width: 100% !important;
|
|
42
37
|
}
|
|
43
38
|
|
|
39
|
+
/* Écrase la réserve 400px inline qu'Ezoic injecte */
|
|
44
40
|
.nodebb-ezoic-wrap .ezoic-ad,
|
|
45
41
|
.nodebb-ezoic-wrap span.ezoic-ad {
|
|
46
|
-
|
|
47
|
-
margin: 0 auto !important;
|
|
42
|
+
margin: 0 !important;
|
|
48
43
|
padding: 0 !important;
|
|
44
|
+
min-height: 1px !important;
|
|
49
45
|
height: auto !important;
|
|
50
|
-
min-height: unset !important;
|
|
51
|
-
max-height: none !important;
|
|
52
|
-
box-sizing: border-box !important;
|
|
53
|
-
max-width: 100% !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.nodebb-ezoic-wrap iframe {
|
|
57
|
-
margin-left: auto !important;
|
|
58
|
-
margin-right: auto !important;
|
|
59
|
-
max-width: 100% !important;
|
|
60
46
|
}
|
|
61
47
|
|
|
48
|
+
/* Reportline en absolu pour ne pas impacter le layout */
|
|
62
49
|
.nodebb-ezoic-wrap .reportline {
|
|
63
50
|
position: absolute !important;
|
|
64
51
|
}
|
|
65
52
|
|
|
53
|
+
/* Neutralise sticky dans nos wraps (évite l'effet "gliding") */
|
|
66
54
|
.nodebb-ezoic-wrap .ezads-sticky-intradiv {
|
|
67
55
|
position: static !important;
|
|
68
56
|
top: auto !important;
|
|
69
57
|
}
|
|
70
58
|
|
|
71
|
-
/* ──
|
|
59
|
+
/* ── État vide ────────────────────────────────────────────────────────────── */
|
|
60
|
+
/*
|
|
61
|
+
Ajouté 20s après showAds si aucun fill détecté.
|
|
62
|
+
Collapse à 1px (pas 0) : reste observable par l'IO si le fill arrive tard.
|
|
63
|
+
*/
|
|
72
64
|
.nodebb-ezoic-wrap.is-empty {
|
|
73
65
|
display: block !important;
|
|
74
66
|
height: 1px !important;
|
|
@@ -79,75 +71,7 @@
|
|
|
79
71
|
overflow: hidden !important;
|
|
80
72
|
}
|
|
81
73
|
|
|
82
|
-
|
|
83
|
-
.nodebb-ezoic-wrap.is-empty:has([data-google-container-id]),
|
|
84
|
-
.nodebb-ezoic-wrap.is-empty:has(div[id$="__container__"]) {
|
|
85
|
-
height: auto !important;
|
|
86
|
-
min-height: 0 !important;
|
|
87
|
-
max-height: none !important;
|
|
88
|
-
overflow: visible !important;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/* ── Adaptive / multi-ad ──────────────────────────────────────────────────── */
|
|
92
|
-
.nodebb-ezoic-wrap .ezoic-ad-adaptive,
|
|
93
|
-
.nodebb-ezoic-wrap .adtester-container,
|
|
94
|
-
.nodebb-ezoic-wrap [class*="Content-multi-"] {
|
|
95
|
-
width: auto !important;
|
|
96
|
-
min-width: 0 !important;
|
|
97
|
-
max-width: 100% !important;
|
|
98
|
-
box-sizing: border-box !important;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.nodebb-ezoic-wrap .ezoic-ad-adaptive,
|
|
102
|
-
.nodebb-ezoic-wrap .adtester-container {
|
|
103
|
-
display: block !important;
|
|
104
|
-
margin-left: auto !important;
|
|
105
|
-
margin-right: auto !important;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.nodebb-ezoic-wrap [class*="Content-multi-"] ~ [class*="Content-multi-"],
|
|
109
|
-
.nodebb-ezoic-wrap div[id$="__container__"] ~ div[id$="__container__"] {
|
|
110
|
-
display: none !important;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* ── Mobile ───────────────────────────────────────────────────────────────── */
|
|
114
|
-
@media (max-width: 767px) {
|
|
115
|
-
.nodebb-ezoic-wrap,
|
|
116
|
-
.nodebb-ezoic-wrap > [id^="ezoic-pub-ad-placeholder-"],
|
|
117
|
-
.nodebb-ezoic-wrap > [id^="ezoic-pub-ad-placeholder-"] > div {
|
|
118
|
-
max-width: 100vw !important;
|
|
119
|
-
box-sizing: border-box !important;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.nodebb-ezoic-wrap .ezoic-ad,
|
|
123
|
-
.nodebb-ezoic-wrap span.ezoic-ad,
|
|
124
|
-
.nodebb-ezoic-wrap .ezoic-ad-adaptive,
|
|
125
|
-
.nodebb-ezoic-wrap .adtester-container,
|
|
126
|
-
.nodebb-ezoic-wrap [class*="Content-multi-"] {
|
|
127
|
-
min-width: 0 !important;
|
|
128
|
-
width: auto !important;
|
|
129
|
-
max-width: 100% !important;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.nodebb-ezoic-wrap .reportline {
|
|
133
|
-
left: 0 !important;
|
|
134
|
-
right: 0 !important;
|
|
135
|
-
width: auto !important;
|
|
136
|
-
max-width: 100% !important;
|
|
137
|
-
box-sizing: border-box !important;
|
|
138
|
-
overflow: hidden !important;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.nodebb-ezoic-wrap .reportline * {
|
|
142
|
-
max-width: 100% !important;
|
|
143
|
-
box-sizing: border-box !important;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.nodebb-ezoic-wrap > [id^="ezoic-pub-ad-placeholder-"] {
|
|
147
|
-
overflow-x: visible !important;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
74
|
+
/* ── Ezoic global (hors de nos wraps) ────────────────────────────────────── */
|
|
151
75
|
.ezoic-ad {
|
|
152
76
|
margin: 0 !important;
|
|
153
77
|
padding: 0 !important;
|