| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <title>%1</title> |
| 5 | <meta charset="utf-8"> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 7 | <style> |
| 8 | %style% |
| 9 | </style> |
| 10 | </head> |
| 11 | <body> |
| 12 | |
| 13 | %2 |
| 14 | |
| 15 | <script> |
| 16 | const rssGuardroot = document.documentElement; |
| 17 | rssGuardBody = document.body; |
| 18 | let rssGuardColor = window.getComputedStyle(rssGuardBody).backgroundColor; |
| 19 | rssGuardMatch = rssGuardColor.match(/(\w+)\((\d+), (\d+), (\d+)\)/); |
| 20 | |
| 21 | if (rssGuardMatch != null) { |
| 22 | rssGuardroot.style.setProperty('--rssguard-red', rssGuardMatch[2]); |
| 23 | rssGuardroot.style.setProperty('--rssguard-green', rssGuardMatch[3]); |
| 24 | rssGuardroot.style.setProperty('--rssguard-blue', rssGuardMatch[4]); |
| 25 | } |
| 26 | </script> |
| 27 | |
| 28 | </body> |
| 29 | </html> |