Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hungngocphat01/a78a185ec7147b7a349bc868de9bb172 to your computer and use it in GitHub Desktop.
Save hungngocphat01/a78a185ec7147b7a349bc868de9bb172 to your computer and use it in GitHub Desktop.
nhk-plus-sub.js
document.querySelector(".hls-player_message").remove();
var subtitleCanvasElem = document.querySelector(".hls-player_in-subtitle");
subtitleCanvasElem.style.height = "70%";
subtitleCanvasElem.style.width = "70%";
subtitleCanvasElem.style.top = "unset";
// To use on mobile:
// javascript:(function () { document.querySelector(".hls-player_message").remove(); var subtitleCanvasElem = document.querySelector(".hls-player_in-subtitle"); subtitleCanvasElem.style.height = "70%"; subtitleCanvasElem.style.width = "70%"; subtitleCanvasElem.style.top = "unset"; })();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment