Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to move the subtitle preview label to center middle

About: YouTube Subtitle Preview

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?

Comments

  • 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.

  • Thank you very much! :)

Sign In or Register to comment.