Viu.com Subtitle Caption Stylish

This is to replace the subtitle / caption style using in Viu.com

  1. /* ==UserStyle==
  2. @name Viu.com Subtitle Caption Stylish
  3. @namespace http://userstyles.org
  4. @version 0.7
  5. @author CY Fung
  6. @match https://www.viu.com/ott/hk/zh-hk/vod/*
  7. @description This is to replace the subtitle / caption style using in Viu.com
  8. @license MIT
  9. @run-at document-start
  10. ==/UserStyle== */
  11.  
  12. @-moz-document url-prefix("https://www.viu.com/ott/hk/zh-hk/vod/") {
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20. @font-face {
  21. font-family: 'cwTeXYen';
  22. src: url(https://fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot);
  23. src: url(https://fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.eot?#iefix) format('embedded-opentype'),
  24. url(https://fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.woff2) format('woff2'),
  25. url(https://fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.woff) format('woff'),
  26. url(https://fonts.gstatic.com/ea/cwtexyen/v3/cwTeXYen-zhonly.ttf) format('truetype');
  27. }
  28. @font-face {
  29. font-family: 'cwTeXHei';
  30. src: url(https://fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot);
  31. src: url(https://fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.eot?#iefix) format('embedded-opentype'),
  32. url(https://fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.woff2) format('woff2'),
  33. url(https://fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.woff) format('woff'),
  34. url(https://fonts.gstatic.com/ea/cwtexhei/v3/cwTeXHei-zhonly.ttf) format('truetype');
  35. }
  36. /**
  37.  
  38. Extracted from
  39.  
  40. @import url('https://fonts.googleapis.com/css?family=Noto+Sans');
  41. @import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);
  42. @import url(//fonts.googleapis.com/earlyaccess/notosanssc.css);
  43. @import url(//fonts.googleapis.com/earlyaccess/notosansjp.css);
  44. @import url(//fonts.googleapis.com/earlyaccess/notosanskr.css);
  45.  
  46. **/
  47.  
  48. /* cyrillic-ext */
  49. .viu-player .vjs-text-track-display.subtitles-bottom .vjs-text-track-cue[style*="text-align: center;"]>div{
  50. --scale: 2.15;
  51. --base-font-size:13.6233px;
  52. --text-color:rgba(221, 221, 221, 0.863);
  53. --text-color:rgba(244, 244, 244, 1);
  54. --text-shadow-h-shadow: 0px;
  55. --text-shadow-v-shadow: 0px;
  56. --text-shadow-blur-radius: 1.7px;
  57. --text-shadow-color:rgb(0, 120, 255);
  58. --text-outline-color:rgb(0, 120, 255);
  59. --text-shadow: var(--text-shadow-color) var(--text-shadow-h-shadow) var(--text-shadow-v-shadow) var(--text-shadow-blur-radius);
  60. --text-font: 'Noto Sans TC','Noto Sans SC','Noto Sans JP','Noto Sans KR','Noto Sans',sans-serif;
  61. --font-weight:400;
  62. --letter-spacing: 0px;
  63. --text-shadow-black-outline: rgb(0, 120, 255);
  64. transform:none !important;
  65. text-shadow:
  66. var( --text-outline-color) -1px -1px 0,
  67. var( --text-outline-color) -1px 1px 0,
  68. var( --text-outline-color) 1px -1px 0,
  69. var( --text-outline-color) 1px 1px 0,
  70. var( --text-shadow-color) 0 0 1.5px,
  71. var( --text-shadow-color) 0 0 2px,
  72. var( --text-shadow-color) 0 0 2.5px,
  73. var( --text-shadow-color) 0 0 3px,
  74. var( --text-shadow-color) 0 0 3.5px,
  75. var( --text-shadow-color) 0 0 4px,
  76. var( --text-shadow-black-outline) -2px -2px 2px,
  77. var( --text-shadow-black-outline) 2px 2px 2px,
  78. var( --text-shadow-black-outline) 2px -2px 2px,
  79. var( --text-shadow-black-outline) -2px 2px 2px
  80. !important;
  81. color: var(--text-color) !important;
  82. fill: var(--text-color) !important;
  83. font-family: var(--text-font) !important;
  84. font-weight: var(--font-weight) !important;
  85. letter-spacing: var(--letter-spacing) !important;
  86. }
  87. body .viu-player .vjs-caption-display [id="2nd_subtitle"][style*="text-align: center;"]>div{
  88. background:transparent !important;
  89. --text-font: 'Noto Sans TC','Noto Sans SC','Noto Sans JP','Noto Sans KR','Noto Sans',sans-serif;
  90. font-family: var(--text-font) !important;
  91. --text-shadow-color:rgba(50, 50, 50);
  92. --text-color:rgba(250,250,250,1);
  93. --text-shadow-black-outline: rgba(180, 180, 180);
  94. --text-outline-color:rgb(120, 120, 120);
  95. text-shadow: var( --text-outline-color) 0 0 3px,
  96. var( --text-shadow-color) 0 0 10px,
  97. var( --text-shadow-color) 0 0 10px
  98. !important;
  99. color: var(--text-color) !important;
  100. fill: var(--text-color) !important;
  101. font-family: var(--text-font) !important;
  102. transform:scale(1.25);
  103. --letter-spacing: 2px;
  104. letter-spacing: var(--letter-spacing) !important;
  105. }
  106.  
  107. .fp-play-now-watermark{
  108. display:none;
  109. }
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址