/* ==UserStyle==
@name Netflix字幕自定義1
@namespace https://greasyfork.org/zh-TW/users/4839
@version 1.1.5
@description 自行設定字幕字體外框租細顏色Set Netflix subtitle font shadow
@author Leadra
@var text font_sys "字體自行輸入" Trebuchet MS
@var select font_se "字體選擇" ["Iansui*","LXGW WenKai","yozai","Microsoft JhengHei ","GenYoGothic JP","Netflix Sans","sans-serif", "serif", "monospace"]
@var select font_weight "字體細粗" ["normal", "bold*"]
@var select font_style "字體正斜" ["normal*", "italic"]
@var number font_size "字體size" [80, 0, 110, 5,"px"]
@var color font_color "字體色" rgba(255, 255, 255, 1)
@var number sh_size "字框size" [3, 0, 10, 1,"px"]
@var color sh_color "字框色" rgba(7, 5, 255, 1)
@var checkbox sh_hide "控制項移入才顯示" 1
@preprocessor stylus
@supportURL https://www.netflix.com/settings/subtitles
@homepageURL https://greasyfork.org/zh-TW/scripts/486313
@license MIT
==/UserStyle== */
/*參考
https://userstyles.world/style/10249
https://greasyfork.org/zh-TW/scripts/444131
https://userstyles.world/style/7930
*/
@-moz-document url-prefix("https://www.netflix.com/watch/"), url-prefix("https://www.netflix.com/settings/subtitles") {
/*字幕設定*/
div.player-timedtext > div.player-timedtext-text-container > span > span {
font-family: font_sys, font_se !important;
font-weight: font_weight !important;
font-style: font_style !important;
font-size: font_size !important;
color: font_color !important;
text-shadow: 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color, 0 0 sh_size sh_color !important;
}
/*控制項移入才顯示,移出即消失(但字幕仍會被上移5秒)*/
if sh_hide {
.watch-video--bottom-controls-container {opacity:0;}
.watch-video--adsInfo-container, .watch-video--back-container, .watch-video--flag-container{opacity:0;}
.watch-video--player-view:hover{
.watch-video--bottom-controls-container {opacity:1;}
.watch-video--adsInfo-container, .watch-video--back-container, .watch-video--flag-container{opacity:1;}
}}
}
/*
網站預設字幕大小8.4em
芫荽Iansui
https://github.com/ButTaiwan/iansui?tab=readme-ov-file
霞鶩文楷LXGW WenKai
悠哉體yozai
微軟正黑體Microsoft JhengHei
源樣黑體GenYoGothic JP
Netflix Sans(網站預設)
*/