Netflix CC 字幕样式(描边)

更改 Netflix IMSC CC 字幕样式,使其变为接近日本 Blu-ray 字幕的描边风格

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name               Netflix CC 字幕样式(描边)
// @name:zh-TW         Netflix CC 字幕樣式(描邊)
// @name:ja            NetflixのCC字幕スタイル(縁取り)
// @namespace          http://tampermonkey.net/
// @version            0.20
// @description        更改 Netflix IMSC CC 字幕样式,使其变为接近日本 Blu-ray 字幕的描边风格
// @description:zh-TW  調整 Netflix IMSC CC 字幕樣式,讓風格更貼近日本藍光影片的字幕描邊效果
// @description:ja     NetflixのIMSC CC字幕のスタイルを、日本のBlu-ray字幕のような縁取りスタイルになるように変更する
// @author             TGSAN
// @match              *://www.netflix.com/*
// @icon               https://www.google.cn/s2/favicons?sz=64&domain=netflix.com
// @grant              none
// ==/UserScript==

(function() {
    'use strict';

    let subtitleStyle = `
.player-timedtext span {
    color: rgb(192, 192, 192) !important;
    /* -webkit-text-stroke: 0.01em black; */
    opacity: 1 !important;
    font-weight: 400 !important;
    font-family: 'GenSenRounded2 PJP', 'GenSenRounded2 JP', 'GenSenRounded2 TW', 'GenSenRounded2 TC', Netflix Sans, Helvetica Nueue, Helvetica, Arial, sans-serif !important;
    text-shadow: rgb(0, 0, 0) 0.05em 0 0, rgb(0, 0, 0) 0 -0.05em 0, rgb(0, 0, 0) 0 0.05em 0, rgb(0, 0, 0) -0.05em 0 0,
                 rgb(0, 0, 0) 0.04em 0.04em 0.04em, rgb(0, 0, 0) -0.04em 0.04em 0.04em, rgb(0, 0, 0) -0.04em -0.04em 0.04em, rgb(0, 0, 0) 0.04em -0.04em 0.04em,
                 rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em, rgb(0, 0, 0) 0 0 0.05em !important;
}
.image-based-subtitles {
    filter: brightness(75%);
}
`;
    let applySubtitleStyle = document.createElement("style");
    applySubtitleStyle.innerHTML = subtitleStyle;
    document.head.appendChild(applySubtitleStyle);
})();