|
1 | 1 | // ==UserScript== |
2 | | -// @version 2.4.26567.37140 |
| 2 | +// @version 2.4.26569.3348 |
3 | 3 | // @author Write |
4 | 4 | // @name OphirofoxScript |
5 | 5 | // @grant GM.getValue |
|
2281 | 2281 | const banner = findPremiumBanner(); |
2282 | 2282 | if (!banner) return; |
2283 | 2283 | const anchor = document.querySelector( |
2284 | | - '.article__metas__container__info' |
| 2284 | + '.article__icons' |
2285 | 2285 | ); |
2286 | 2286 | const newDiv = document.createElement('div'); |
2287 | 2287 | newDiv.classList.add('europresse-button'); |
|
2294 | 2294 |
|
2295 | 2295 | pasteStyle(` |
2296 | 2296 | .ophirofox-europresse { |
2297 | | - padding: 0px; |
2298 | | - text-decoration: none; |
2299 | | - color: #333 !important; |
| 2297 | + text-decoration: none; |
| 2298 | + color: #1b1b1b; |
| 2299 | + transition: color 0.3s; |
| 2300 | + } |
| 2301 | + |
| 2302 | + .ophirofox-europresse:hover { |
| 2303 | + color: #fff; |
| 2304 | + } |
| 2305 | + |
| 2306 | + .ophirofox-europresse:visited { |
| 2307 | + color: #1b1b1b; |
| 2308 | + } |
| 2309 | + |
| 2310 | + .ophirofox-europresse:visited:hover { |
| 2311 | + color: #fff; |
2300 | 2312 | } |
2301 | 2313 | |
2302 | 2314 | .europresse-button { |
2303 | | - background-color: #ffe066; |
2304 | | - text-transform: uppercase; |
2305 | | - text-align: center; |
2306 | | - padding: 10px; |
2307 | | - font-size: .75rem; |
2308 | | - align-items: center; |
2309 | | - display: flex; |
2310 | | - border-radius: 5px; |
2311 | | - margin-right: 14px; |
2312 | | - margin-top: 14px; |
2313 | | - width: fit-content; |
2314 | | - font-weight: 600; |
2315 | | - margin-bottom: 0px; |
2316 | | - margin-left: 0px; |
2317 | | - box-sizing: inherit; |
2318 | | - color: #333; |
2319 | | - font-family: 'Spartan','Spartan Fallback 1','Spartan Fallback 2',system-ui,'-apple-system','Segoe UI','Roboto','Helvetica Neue',Arial,'Noto Sans',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji'; |
| 2315 | + display: flex; |
| 2316 | + flex-direction: row; |
| 2317 | + justify-content: center; |
| 2318 | + align-items: center; |
| 2319 | + color: #1b1b1b; |
| 2320 | + border: solid 1px #1b1b1b; |
| 2321 | + gap: 8px; |
| 2322 | + height: 39px; |
| 2323 | + background-color: #fff; |
| 2324 | + font-weight: 600; |
| 2325 | + border-radius: 42px; |
| 2326 | + text-decoration: none; |
| 2327 | + font-size: 0.75rem; |
| 2328 | + cursor: pointer; |
| 2329 | + padding: 10px 14px; |
| 2330 | + font-family: Spartan, Spartan Fallback\1, Spartan Fallback\2, system-ui, |
| 2331 | + -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, |
| 2332 | + sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, |
| 2333 | + Noto Color Emoji; |
| 2334 | + transition: background-color 0.3s, color 0.3s; |
| 2335 | + } |
| 2336 | + |
| 2337 | + .europresse-button:hover { |
| 2338 | + color: #fff; |
| 2339 | + background-color: #1b1b1b; |
| 2340 | + } |
| 2341 | + |
| 2342 | + .europresse-button:hover a { |
| 2343 | + color: #fff; |
| 2344 | + } |
| 2345 | + |
| 2346 | + .europresse-button:visited { |
| 2347 | + color: #1b1b1b; |
2320 | 2348 | } |
2321 | 2349 | `); |
2322 | 2350 | } |
|
0 commit comments