Netflix CC 字幕样式(描边)

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

2025-07-06 يوللانغان نەشرى. ئەڭ يېڭى نەشرىنى كۆرۈش.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name               Netflix CC 字幕样式(描边)
// @name:zh-TW         Netflix CC 字幕樣式(描邊)
// @name:ja            NetflixのCC字幕スタイル(縁取り)
// @namespace          http://tampermonkey.net/
// @version            0.18
// @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) 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;
}
.image-based-subtitles {
    filter: brightness(75%);
}
`;
    let applySubtitleStyle = document.createElement("style");
    applySubtitleStyle.innerHTML = subtitleStyle;
    document.head.appendChild(applySubtitleStyle);
})();