Initial commit - tokiDownloader.user.js
This commit is contained in:
8
Samples/오늘부터 가정부입니다만! - 나츠바 준 _ 뉴토끼_files/theme.js
Normal file
8
Samples/오늘부터 가정부입니다만! - 나츠바 준 _ 뉴토끼_files/theme.js
Normal file
@@ -0,0 +1,8 @@
|
||||
(function () {
|
||||
try {
|
||||
var m = document.cookie.match(/(?:^|; )theme=([^;]+)/);
|
||||
var t = m ? decodeURIComponent(m[1]) : "light";
|
||||
if (t !== "dark" && t !== "light") t = "light";
|
||||
document.documentElement.setAttribute("data-theme", t);
|
||||
} catch (_) {}
|
||||
})();
|
||||
Reference in New Issue
Block a user