// ==UserScript==
// @name Netflix CC 字幕样式(描边)
// @name:zh-TW Netflix CC 字幕樣式(描邊)
// @name:ja NetflixのCC字幕スタイル(縁取り)
// @namespace http://tampermonkey.net/
// @version 0.11
// @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: rgba(255, 255, 255, 0.6) !important;
opacity: 1 !important;
font-weight: 400 !important;
font-family: 'GenSenRounded2 JP', 'GenSenRounded2 TW', 'GenSenRounded2 TC', Netflix Sans, Helvetica Nueue, Helvetica, Arial, sans-serif !important;
text-shadow: rgb(0, 0, 0) 2px 0px 0px, rgb(0, 0, 0) 0px -2px 0px, rgb(0, 0, 0) 0px 2px 0px, rgb(0, 0, 0) -2px 0px 0px,
rgb(0, 0, 0) 1.5px 1.5px 1px, rgb(0, 0, 0) -1.5px 1.5px 1px, rgb(0, 0, 0) -1.5px -1.5px 1px, rgb(0, 0, 0) 1.5px -1.5px 1px,
rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px, rgb(0, 0, 0) 0 0 2px !important;
}
`;
let applySubtitleStyle = document.createElement("style");
applySubtitleStyle.innerHTML = subtitleStyle;
document.head.appendChild(applySubtitleStyle);
})();