Greasy Fork is available in English.

YouTube Subtitle Preview

Know if a video has subtitles before you click.

< Feedback on YouTube Subtitle Preview

Review: Good - script works

§
Posted: 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?

ayanceyAuthor
§
Posted: 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.

§
Posted: 07. 11. 2018

Thank you very much! :)

Post reply

Sign in to post a reply.