From 413ba63189cd43b282ae858b66aef57893ada4ae Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 27 三月 2022 10:00:01 +0800 Subject: [PATCH] 2022-03-27 --- index.html | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/index.html b/index.html index 2238be2..009cf89 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,20 @@ <script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279630927'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1279630927%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script> <!-- <script type="text/javascript" src="https://js.users.51.la/4874247.js"></script> --> <noscript></noscript> + <script> + fetch('./options.json') + .then(response => response.json()) + .catch(() => {}) + .then(config => { + if (config && config.filter === 'true') { + let html = document.getElementsByTagName('html')[0] + + if (html) { + html.style.filter = 'grayscale(100%)' + } + } + }) + </script> </body> </html> <script type="text/javascript"> -- Gitblit v1.8.0