From 81e50ca10197278a158452e918ed76a3edfe543e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 04 四月 2020 21:21:21 +0800
Subject: [PATCH] 2020-04-04

---
 src/index.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/index.js b/src/index.js
index d6a8961..3da6d82 100644
--- a/src/index.js
+++ b/src/index.js
@@ -55,6 +55,14 @@
 
 document.title = window.GLOB.platTitle
 
+if (window.GLOB.filter === 'true') {
+  let html = document.getElementsByTagName('html')[0]
+  
+  if (html) {
+    html.style.filter = 'grayscale(100%)'
+  }
+}
+
 
 const option = {
   white: 'mk-white'

--
Gitblit v1.8.0