Greasy Fork

Greasy Fork is available in English.

修复在 macOS 上全屏观看视频可能变黄的问题

适用于 macOS 系统。当 mac 外接显示器同时使用 f.lux 或者 夜览模式时,使用浏览器观看全屏观看视频,屏幕会变黄,此脚本将修复此问题。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name              Fix full-screen video colors glitch on macOS
// @name:en           Fix full-screen video colors glitch on macOS
// @name:zh           修复在 macOS 上全屏观看视频可能变黄的问题
// @name:zh-CN        修复在 macOS 上全屏观看视频可能变黄的问题
// @namespace         http://tampermonkey.net/
// @version           0.1
// @description       For macOS users. Fix visual color artifacts in full-screen videos on external monitor when the f.lux app of night shift is running.
// @description:en    For macOS users. Fix visual color artifacts in full-screen videos on external monitor in Chrome when the f.lux app of night shift is running.
// @description:zh-CN 适用于 macOS 系统。当 mac 外接显示器同时使用 f.lux 或者 夜览模式时,使用浏览器观看全屏观看视频,屏幕会变黄,此脚本将修复此问题。
// @author            nozomi22
// @license           MIT License
// @match             *://www.bilibili.com/video/*
// @match             *://www.youtube.com/*
// @match             *://www.netflix.com/*
// @grant             none
// ==/UserScript==

(function () {
    var style = document.createElement ("style");
//    style.appendChild (document.createTextNode (""));
    document.head.appendChild (style);
    var ss = style.sheet;
    ss.insertRule (":-webkit-full-screen video {opacity: 0.996 !important;}", 0);
    ss.insertRule (":fullscreen video {opacity: 0.996 !important;}", 0);
})();