Skip to content

测试中:尝试把DarkReader用在via浏览器

License

Notifications You must be signed in to change notification settings

IlysvlVEizbr/via-DarkReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

via-DarkReader

测试中:尝试把DarkReader用在via浏览器


脚本使用示例

// ==UserScript==
// @name         DarkReader
// @description  js脚本实现夜间模式
// @author       Sky
// @version      1.0.1
// @run-at       document-start
// @match        *://*/*
// @grant        unsafeWindow
// @homepageURL  http://via-app.cn/#/pluginDetail/53
// @namespace    https://viayoo.com/
// ==/UserScript==
(function(){const w = window;
/*以下参数可修改,推荐取值范围1~100,=null表示恢复默认值*/
w.DR_setting0=100; /*亮度*/
w.DR_setting1=90; /*对比度*/
w.DR_setting2=10; /*滤蓝光程度*/
/*----以下勿改----*/
try{const lib=document.createElement('script');lib.src='https://cdn.jsdelivr.net/gh/IlysvlVEizbr/[email protected]/DarkReader.js';lib.defer=true;document.body.append(lib);}catch(err){console.log('DarkReader:',err);}})();

About

测试中:尝试把DarkReader用在via浏览器

Resources

License

Stars

Watchers

Forks

Packages

No packages published