First, you need to install this extension: https://chrome.google.com/webstore/detail/requirify/gajpkncnknlljkhblhllcnnfjpbcmebm/related
Then:
- Go to netflix.com and start a movie
- Press the extension button so that "On" is displayed
- Open developer tools by pressing F12
- If not selected, go to the Console tab
- Execute
require("ctp", "chinese-to-pinyin");
- Wait until you see
Finished getting chinese-to-pinyin
- Execute
let subtitlesSelector = ".lln-subs-font-adjust";
$("body").on('DOMSubtreeModified', subtitlesSelector, function() {
$(subtitlesSelector).find("span").each(function() {
let oldText = $(this).text();
let newText = ctp(oldText);
if (oldText !== newText) {
$(this).text(newText);
}
});
});
- Press F12 again to close the developer tools
- Enjoy the movie!