YouTube Subtitle Preview

Know if a video has subtitles before you click.

< Rückmeldungen auf YouTube Subtitle Preview

Rezension: Gut - Skript funktioniert

§
Veröffentlicht: 03.10.2018

How to move the subtitle preview label to center middle

What do I have to change in your script in order to move the subtitle preview label from the top left corner to the middle center?

ayanceyVerfasser
§
Veröffentlicht: 17.10.2018

Modify left and top css on lines 51/52, and change them to 50%, like this:

new_element.style.left = "50%";
new_element.style.top = "50%";

Then, insert a new line on line 58, and add this:

new_element.style.margin = "-9.5px 0 0 -8px";

After that, it should look like this.

§
Veröffentlicht: 07.11.2018

Thank you very much! :)

Antwort schreiben

Anmelden um eine Antwort zu senden.