|
1 | 1 | // ==UserScript== |
2 | | -// @version 2.4.26325.65219 |
| 2 | +// @version 2.4.26326.30329 |
3 | 3 | // @author Write |
4 | 4 | // @name OphirofoxScript |
5 | 5 | // @grant GM.getValue |
|
98 | 98 | // @include https://www.lefigaro.fr/* |
99 | 99 | // @include https://leparticulier.lefigaro.fr/* |
100 | 100 | // @include https://www.monde-diplomatique.fr/* |
| 101 | +// @include https://www.courrierdesmaires.fr/* |
101 | 102 | // @include https://www.la-croix.com/* |
102 | 103 | // @include https://www.courrierinternational.com/* |
103 | 104 | // @include https://www.lamontagne.fr/* |
|
1146 | 1147 | `); |
1147 | 1148 | } |
1148 | 1149 |
|
| 1150 | + if ("https://www.courrierdesmaires.fr/*".includes(hostname)) { |
| 1151 | + |
| 1152 | + window.addEventListener("load", function(event) { |
| 1153 | + async function createLink() { |
| 1154 | + return await ophirofoxEuropresseLink(); |
| 1155 | + } |
| 1156 | + |
| 1157 | + async function onLoad() { |
| 1158 | + const statusElem = document.querySelector(".encartEssai"); |
| 1159 | + const abo = document.querySelector(".etiquetteArt"); |
| 1160 | + if (!statusElem || !abo) return; |
| 1161 | + statusElem.before(await createLink()); |
| 1162 | + } |
| 1163 | + |
| 1164 | + onLoad().catch(console.error); |
| 1165 | + }); |
| 1166 | + |
| 1167 | + pasteStyle(` |
| 1168 | + .ophirofox-europresse { |
| 1169 | + background-color: #fec22d; |
| 1170 | + padding: 1rem 1.5rem; |
| 1171 | + color: #262626; |
| 1172 | + text-align: center; |
| 1173 | + display: block; |
| 1174 | + margin-top: 1rem; |
| 1175 | + margin-bottom: 1rem; |
| 1176 | + } |
| 1177 | + |
| 1178 | + .ophirofox-europresse:hover { |
| 1179 | + background-color: #e5ae29; |
| 1180 | + } |
| 1181 | + `); |
| 1182 | + } |
| 1183 | + |
1149 | 1184 | if ("https://www.la-croix.com/*".includes(hostname)) { |
1150 | 1185 |
|
1151 | 1186 | window.addEventListener("load", function(event) { |
|
0 commit comments