/* ==UserStyle==
@name Netflix字幕自定義
@namespace https://greasyfork.org/zh-TW/users/4839
@homepageURL https://greasyfork.org/zh-TW/users/4839
@version 1.3.5
@description 自行設定字幕字體外框租細顏色Set Netflix subtitle font shadow
@author Leadra
@var text font_sys "字體自行輸入" Trebuchet MS
@var select font_se "字體選擇" ["'芫荽'*","'台灣圓體'","'jf open 粉圓 2.0'","'源泉圓體'","'微軟正黑體'","'源樣黑體'","'源石黑體'","'免安裝芫荽'","'免安裝悠哉(簡)'","'免安裝台灣圓體'","'免安裝jf粉圓'","'免安裝獅尾腿黑體'","'免安裝芫荽注音體'","'免安裝字嗨注音黑體'","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 font_space "字體間距" [5, 0, 60, 0.5,"px"]
@var number sh_size "字框size" [5, 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;
letter-spacing:font_space !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;}
}}
@font-face {
font-family: '免安裝芫荽';
src: url(https://cdn.jsdelivr.net/gh/leadra/webfont/Iansui2m.woff2);
}
@font-face {
font-family: '免安裝悠哉(簡)';
src: url(https://cdn.jsdelivr.net/gh/leadra/webfont/Yozai-Medium.woff2);
}
@font-face {
font-family: '免安裝台灣圓體';
src: url(https://cdn.jsdelivr.net/gh/max32002/[email protected]/webfont/TaiwanPearl-Regular.woff2) format("woff2")
, url(https://cdn.jsdelivr.net/gh/max32002/[email protected]/webfont/TaiwanPearl-Regular.woff) format("woff");
}
@font-face {
font-family: '免安裝jf粉圓';
src: url(https://cdn.jsdelivr.net/gh/leadra/webfont/jfopen2m.woff2) format("woff2");
//url(https://h0nibs2hyyc8koqvwbe8sa.on.drv.tw/webfont/jfopen2m.woff2) format("woff2");
}
@font-face {
font-family: '免安裝獅尾腿黑體';
src: url(https://cdn.jsdelivr.net/gh/max32002/[email protected]/WebFont/CJK%20TC/SweiRightBottomLegCJKtc-Regular.woff2) format("woff2");
}
@font-face {
font-family: '免安裝芫荽注音體';
src: url(https://cdn.jsdelivr.net/gh/leadra/webfont/BpmfIansui-Regular.woff2) format("woff2");
}
@font-face {
font-family: '免安裝字嗨注音黑體';
src: url(https://cdn.jsdelivr.net/gh/leadra/webfont/BpmfZihiSans-Regular.woff2) format("woff2");
}
}
/*
網站預設字幕大小8.4em
https://zi-hi.com/繁體中文免費字型列表
https://jfsblog.com/blog/post/huninn
'芫荽'Iansui
https://github.com/ButTaiwan/iansui?tab=readme-ov-file
'台灣圓體'
https://github.com/max32002/TaiwanPearl?tab=readme-ov-file
'jf open 粉圓 2.0'
https://github.com/justfont/open-huninn-font?tab=readme-ov-file
'源泉圓體'GenSenRounded JP
https://github.com/ButTaiwan/gensen-font?tab=readme-ov-file
悠哉體yozai
https://github.com/lxgw/yozai-font
微軟正黑體Microsoft JhengHei
(windows內建)
源樣黑體;源石黑體;XX注音體
https://zi-hi.com/
獅尾右下腿黑體
https://max-everyday.com/2021/08/swei-right-bottom-leg/
Netflix Sans(網站預設)
*/