Netflix_Lowercase

Make the subtitles of Netflix lowercase, best used in conjunction with [Language Reactor].

  1. // ==UserScript==
  2. // @name Netflix_Lowercase
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Make the subtitles of Netflix lowercase, best used in conjunction with [Language Reactor].
  6. // @author You
  7. // @match https://www.netflix.com/watch/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=netflix.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15.  
  16. // alert("Trying lol");
  17. let intervalTime = 10; // 30ms once
  18.  
  19. const interval = setInterval(() => {
  20. toLowerCase();
  21. }, intervalTime);
  22.  
  23. function toLowerCase(){
  24. let subtitleWords = document.querySelectorAll('.lln-word');
  25. subtitleWords.forEach(
  26. (word)=>{
  27. word.innerHTML = word.innerHTML.toLowerCase();
  28. }
  29. );
  30. }
  31. //todo: 在subtitle更新后自动启动,避免延迟
  32.  
  33. })();