Greasy Fork is available in English.

哔哩哔哩番剧CC字幕样式(描边)

更改哔哩哔哩番剧CC字幕样式

// ==UserScript==
// @name         哔哩哔哩番剧CC字幕样式(描边)
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  更改哔哩哔哩番剧CC字幕样式
// @author       TGSAN
// @match        *://www.bilibili.com/bangumi*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let subtitleStyle = `
span.squirtle-subtitle-item-text {
    background: transparent !important;
    transform: perspective(1px) scale(1) translateY(-1.0em);
    text-shadow: 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black,0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black,0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black, 0 0 0.075em black;
}
`;
    let applySubtitleStyle = document.createElement("style");
    applySubtitleStyle.innerHTML = subtitleStyle;
    document.head.appendChild(applySubtitleStyle);
})();